Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot Load Applet

 
Tak Ming Laio
Ranch Hand
Posts: 40
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the structure of my application
/app/aaa/aaa.html
/app/aaa/aaa.jsp
/app/bbb/bbb.html
/app/j1.jar
/app/j2.jar

aaa.html is a frameset, one of the frame reference aaa.jsp by:
<frame src="aaa.jsp">
and aaa.jsp load an applet using something like:
<object classid="xxx"
width="0" height="0" id="Xxx"
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">
<param name = "code" value = "path/ClassName.class" >
<param name = "codebase" value = "/app" >
<param name = "type" value="application/x-java-applet;jpi-version=1.4.2">
<param name = "archive" value = "j1.jar,j2.jar" >
<comment>
<applet code="path/ClassName.class" archive="j1.jar,j2.jar"
codebase="/app"
src="/app"
height="1"
id="Xxx"
name="Xxx">
</applet>
</comment>
</object>
which working fine.
Now I write another frameset html, bbb.html locate at another direcotry bbb, and bbb.html reference aaa.jsp using:
<frame src="../aaa/aaa.jsp">
but the applet cannot load, why?
Please help, many thanks.
 
Tak Ming Laio
Ranch Hand
Posts: 40
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact the applet is loaded properly, I have fix it myself.

aaa.html set a javascript variable point to the loaded applet when <frameset onload>, and later one of the frame load a page ccc.jsp to check this variable to see whether the applet is loaded or not.
When I write bbb.html, I set one of the frame <frame src="ccc.jsp">, so ccc.jsp complains before bbb.html <frameset onload> set the variable. If I set the frame location to ccc.jsp at <frameset onload> after I set the variable, ccc.jsp will not complain.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic