Newsgroups: comp.lang.java.help, comp.lang.java.programmer, comp.lang.javascript
From: "DKM" <debashishkmis...@hotmail.com>
Date: 11 Jun 2005 19:02:19 -0700
Local: Sat, Jun 11 2005 10:02 pm
Subject: LiveConnect applet crashing after page reload, please help
Here are the source code files to a Java applet that utilizes
LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some problems. FireFox does not crash at all and no error whatsoever. However, it Can any LiveConnect guru please take a look at this code and let me Thank you very much in advance. D.K. Mishra ======== Hello.class ======== public class Hello extends Applet { private JSObject win; public void init() { public void start() { //A set of 2 overloaded helper methods to create object array to pass //This cretes a filled HTML Tag like <p>Hello</p> or //This method is called from javascript. It inserts } ======== hello.htm ======== <html> <head> <title> New Document </title> <script> function addElement() { app = document.getElementById("Hello"); app.insertText("para"); } </script> </head> <body> <input type="button" onclick="addElement()" value="Fill"/> <p id="para"></p> <applet id="Hello" code="Hello.class" width="1" height="1" mayscript="true" scriptable="true"> </applet> </body> </html> You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||