dom, NS6, japplet communication
I hear NS6 won't allow an japplet to use javascript to talk to the opening html window. What about using a dom function? Anybody know a workaround that would allow my html window to know when the japplet is finished with it's task? I'm trying to submit a file and form to the web server but if user clicks a 'sign file' button, I want an applet to sign the file first. I just need to know when the signing is done. I'm using NS6, JRE1.3.1, iplanet app svr 6.0, iplanet web server.
I got the japplet to call a javascript function in the opening window by putting MAYSCRIPT in the object tag like this: <object MAYSCRIPT id="FileApplet"....
Putting MAYSCRIPT in the param tag didn't work for NS6. It complained saying "mayscript wasn't set". The problem I have now is the browser and all windows close on the second time I run them. The js function takes a string arg from the applet and calls opener.addFile(string). addFile js function parses the string, creates name, id, size vars and calls top.opener.addNewFile(name, id, size,...).If you can follow that, you'll know I have 3 windows opened: a main browser window, a form window, and a window that loaded the applet(couldn't call an applet function in the form window so I opened a window and used param tags). When I remark out top.opener.addNewFile function, the browser doesn't crash. So it must have to do when the string I'm passing around to different windows. Anybody wanna give advice about how I should handle the string from the applet to the main browser?
Thanks!>
Okay boys...
It would be nice if I could get some reply. :|
Here is an easier explanation:
I have a japplet compiled using jdk1.3. I'm using NS6 and jre1.3.1. The applet jar is signed using a Verisign code signing cert. I got the applet to call a javascript function by including MAYSCRIPT in the "<object>" tag. For NS6, I don't use embed tags. So I call this js function that in turn calls opener.addFile() function. Which tells you that another window opened the applet window, right? In addFile function, NS6 crashes if I try to call another function opener.addNewFile(). This calls a function in another window. IE5.5 works fine.
Maybe I'm calling functions too far back up the chain.
Any ideas or thoughts would be appreciated! :)