-
Passing a param to an applet as a JavaScript variable: doesn't work in IE 5.0
Hi all !!
I have a question, just about HTML & Javascript:
I have an HTML file that starts a JAVA applet. This applet loads a 3D model
from a file (3ds, obj, cob, or anothers). I pass the model file as a parameter
from the HTML file, from the <OBJECT> tag.
The problem I had is that I want to have just only one HTML file to start
the applet. This HTML file is loaded in a frame of the navigator, from a
link allocared in another frame. So the parameter I pass in the <OBJECT>
tag is just a JavaScript variable:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 256 HEIGHT = 256 NAME = "MyApplet" ALIGN = middle codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = "HelloUniverse.class" >
<PARAM NAME = NAME VALUE = "MyApplet" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME = "file" VALUE ="&{fileName};">
<PARAM NAME = "scale" VALUE ="&{fileScale};">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3" CODE = "HelloUniverse.class"
NAME = "MyApplet" WIDTH = 256 HEIGHT = 256
ALIGN = middle file = "&{fileName};" scale = "&{fileName};" scriptable=false
pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
<blockquote>
<hr>
If you were using a Java-capable browser,
you would see Hello Universe! instead of this paragraph.
<hr>
</blockquote>
</NOEMBED></EMBED>
</OBJECT>
I pass file = "&{fileName};" and scale = "&{fileScale};". The variables fileName
and fileScale contains the file name and scale (I put the values before loading
the HTML file).
The problem is: it works well in Netscape (the values are received correctly
by the applet), but NOT in IE 5.0 (the applet just receive the strings "&{fileName};"
and "&{fileScale};".
Any ideas ? Has anybody been working with this ?
Thanks in advanced !!
Dani
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|