jbergthorson
10-06-2003, 11:53 AM
I have an html page with an iframe in it.
Within that iframe is an applet.
The html page and the applet interact via javascript and the netscape.javascript package in the applet.
I used to have the applet in a normal frame, and thus I could access the applet by code like:
myapplet=parent.appletFrame.document.applets[0];
myapplet.doThisFunction();
But now that I put the applet in an iframe i can no longer get acces to it via the above code. I have to access the iframe differently, as parent.appletFrame.document.applets[0] is not pointing to the applet in the iframe("null or not an object" error is given).
So my question is, "How do you access an applet that is in an iframe so that you can call the applet's functions?"
Thanks in advance!
Jason
Within that iframe is an applet.
The html page and the applet interact via javascript and the netscape.javascript package in the applet.
I used to have the applet in a normal frame, and thus I could access the applet by code like:
myapplet=parent.appletFrame.document.applets[0];
myapplet.doThisFunction();
But now that I put the applet in an iframe i can no longer get acces to it via the above code. I have to access the iframe differently, as parent.appletFrame.document.applets[0] is not pointing to the applet in the iframe("null or not an object" error is given).
So my question is, "How do you access an applet that is in an iframe so that you can call the applet's functions?"
Thanks in advance!
Jason