Hi Phillipe,
it seems in fact that this syntax is not good for firefox ?
parent.frames['bas'].document.applets[0].isActive())
This is probably better asked in comp.lang.javascript but FWIW: -
What does the FF Error Console say?
Do you output anything to the Java console?
For an examples of accessing an Applet across Frames please see framset
examples at: -http://manson.vistech.net/t3$examples/demo_client_web.html
orhttp://manson.vistech.net/t3$examples/demo_client_flex.html
In both cases you'll have to enter: -
Username: TIER3_DEMO
Password: QUEUE
All source code (inclusing Java) can be found at: -http://manson.vistech.net/t3$examples/
The generic Applet declaration for both examples is contained in
cornucopiae.html which is loaded into the header frame. In the load() event
you'll see that I retrieve the Applet via getElementById("cornucopiae") into
the "chan" variable as personally I don't like "document.applets[n]".
In other pages (like queue_lookup.html) I access the same applet in that
respective pages's load function by using a local copy of "chan" as in "chan
= parent.cornucopiae.chan" (again just because I like names/ids rather than
indexing into collections/arrays. You can see that I can then access the
Java Applet method "chan.setTimeout(maxReadTime)" quite happily.
In my example, if the user drills-down into the select-list then I call the
showDetails() function which in-turn calls the getReady() function in the
entry_details Frame (before resizing the frames to put entry_details.html in
front). The goBack() function in entry_details.html has the reverse
operation.
I'm not sure what's wrong with your code, or if mine will help you at all,
but it's certainly similar to what you're doing and well worth a look!
Regards Richard Maher
Don't know what difference the "jsp
lugin" makes, but FWIW with regualar
Applets this works for me: -
<script type="text/javascript">
var appletDef = navigator.appName;
if (appletDef == "Microsoft Internet Explorer")
document.write
(
'<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" ',
'width= "0" height= "0" id="AnonCallApplet">',
'<param name="code"
value="AnonCallApplet">',
'<param name="mayscript" value="yes">',
'<param name="scriptable" value="true">',
'</object>'
);
else
document.write
(
'<object classid="java:AnonCallApplet.class" ',
'type="application/x-java-applet" ',
'width= "0" height= "0" id="AnonCallApplet">',
'<param name="code"
value="AnonCallApplet">',
'<param name="mayscript" value="yes">',
'<param name="scriptable" value="true">',
'</object>'
);
Cheers Richard Maher
this code is running
<APPLET
CODEBASE = "."
CODE = "jscript01.Jscript01.class"
NAME = "Test"
WIDTH = "100%"
HEIGHT = "75%"
HSPACE = 0
VSPACE = 0
ALIGN = middle
MAYSCRIPT>
</APPLET>
but this code is not running, do you have an idea ?
<BODY>
<object type="application/x-java-applet;version=1.6" id="Test"
name="Test" width="100%" height="75%" mayscript="true">
<param name="java_code" value="jscript01.Jscript01.class">
<param name="type" value="application/x-java-applet;version=1.6">
<param name="codebase" value=".">
<param name="name" value="Test" >
<param name="scriptable" value="true" >
<param name="mayscript" value="yes" >
</object>
</BODY>
Hi,
it seems in fact that this syntax is not good for firefox ?
parent.frames['bas'].document.applets[0].isActive())
I have a frame that calling two html file
<FRAMESET ROWS="50%,50%">
<FRAME SRC="jscript01.html" NAME="haut">
<FRAME SRC="jscript01.html" NAME="bas">
</FRAMESET>
Regards
Philippe- Masquer le texte des messages précédents -
- Afficher le texte des messages précédents -