| | |
Java Applet in another directory
![]() |
Paste the code of the HTML file which is using your Applet, So we can see whats going on.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
"How to ask questions the smart way ?"
"How to ask questions the smart way ?"
•
•
Join Date: Dec 2008
Posts: 3
Reputation:
Solved Threads: 0
This works fine:
This doesn't:
Java Syntax (Toggle Plain Text)
<applet width=450 height=300 code="applet_maxr.class">
This doesn't:
Java Syntax (Toggle Plain Text)
<applet width=450 height=300 code="http://.../applet_maxr.class">
Sorry for the delayed reply, but I would like to point out that the "code" attribute of the "<applet>" tag can only take a relative URL and not an absolute one.
To be able to use the applet mentioned in the URL, you will need to use the "codebase" attribute of the "<applet>" tag, shown below:-
You can learn more about them here.
To be able to use the applet mentioned in the URL, you will need to use the "codebase" attribute of the "<applet>" tag, shown below:-
html Syntax (Toggle Plain Text)
<applet width=450 height=300 codebase="http://.../" code="applet_maxr.class">
You can learn more about them here.
Last edited by stephen84s; Dec 27th, 2008 at 5:35 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
"How to ask questions the smart way ?"
"How to ask questions the smart way ?"
![]() |
Similar Threads
- Loading image in an Applet (Java)
- Problems loading applet (Java)
- Applet Loading Failed........ (Java)
- Applet Problem... (Java)
- JAVA applet help (Java)
- Doubt in Applet Program (Java)
- Amazing Free! Hosting, 100MB-2GB + phpMyadmin, SSI,Pop3 the works (Web Hosting Deals)
- datadx.dll (Viruses, Spyware and other Nasties)
- message applet failed (Java)
- Java Applet and IIS (Java)
Other Threads in the Java Forum
- Previous Thread: Web Page Interaction Question
- Next Thread: Deleting contents of a file before writing
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javadoc javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle plazmic print problem program programming project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree unlimited utility webservices windows






