dcsimg
Java Pluggin & the destroy() method
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, September 2, 2001 06:04 AM

New Document Hi Guys !!! Workin on an application where the applet needs to invoke the destroy() method and in turn passes values to the servlet.This works as desired when the applet is invoked using the following tag : However,when the tag is used "the destroy() is not invoked when the user closes the browser".Following is the tag in use : classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width=780 height=300 align="left" codebase="http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn"> type="   More>>
New Document

Hi Guys !!!

Workin on an application where the applet needs to invoke the destroy() method and in turn passes
values to the servlet.This works as desired when the applet is invoked using the following tag :



However,when the

tag is used "the destroy() is not invoked when the user closes the
browser".Following is the tag in use :






classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width=780 height=300 align="left"
codebase="http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn">







type="application/x-java-applet;version=1.3" width="200"
height="300" align="baseline" code="AppletTest"
pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">

No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!






Is there any problem with the tag in use ? Pls suggest.

Thanks Guys !!!    <<Less

Re: Java Pluggin & the destroy() method

Posted By:   harald_braun  
Posted On:   Wednesday, September 5, 2001 02:57 AM

Hi,
Without trying your tag attributes, just a quick note about portability. IE recognizes plugins via the tag and NS recognized plugins via the tag, therefore your code will only work fine with NS.

I am avoiding destroy() because its not called on closing the browser, whereby stop() is. I think stop() is the most reliable way of controlling the applet shutdown with regards to platforms (MS, LINUX or MAC) or browsers (NS, Opera, IE).

Just be careful with stop in NS because it's called on resizing the browser!

Link to Resizing NS.




Quick comparison of IE and NS using tags









ActionIENS
Backs,ds
Leaves,ds
Closess
ResizeXs
Reloads,ds,d



s = stop()

d = destroy()

X = other