This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet - LiveConnect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet - LiveConnect" Watch "Applet - LiveConnect" New topic
Author

Applet - LiveConnect

sridevi sangaiah
Greenhorn

Joined: Mar 20, 2001
Posts: 19
Hi,

I have a requirement where i should communicate some data from inside the Applet's stop method (i.e. when the applet is closed) to a JavaScript function. I am using LiveConnect to communicate from Applet to JavaScript.

For some reason the LiveConnect call that i make inside the Applet's stop method to communicate the data to the appropriate JavaScript function is not completed. From my observation what i could guess is, the Applet is destroyed before the LiveConnect call is completed, hence the JavaScript method is not invoked.

Can anyone throw some light on this issue?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
This sounds odd. I wouldn't think that the call to JavaScript is asynchronous (meaning it returns before it has been fully executed). Does the call if it is done from some method in the applet (in other words, while the applet is NOT being shut down)?


Ping & DNS - updated with new look and Ping home screen widget
sridevi sangaiah
Greenhorn

Joined: Mar 20, 2001
Posts: 19
The call to javascript is not asynchoronous. And yes the javascript call works fine when invoked from some other method in the applet.
 
Consider Paul's rocket mass heater.
 
subject: Applet - LiveConnect
 
Similar Threads
Child Window
Msg from applet to browser
Applet vs JavaScript
Renaming the title bar iin a browser using html
If a user clicks the close box (X) on an applet window