I'm affraid you'll have problem to do this :
For doing this with IE you have to convert your applet in an ActiveX.
It's impossible to do this with Netscape because of certain limitation
in the Netscape plugin API...
more docs :
http://java.sun.com/products/plugin/1.2/docs/script.html
http://java.sun.com/products/plugin/1.2/docs/jsobject.html
documentation index :
http://java.sun.com/products/plugin/1.2/docs/index.docs.html
HTH
JM
------------------Original message------------>
Hi All,
My previous mail came back with some errors..so sending again.
I am using the netscape.javascript classes to communicate from an Applet
to the JavaScript objects of the window(HTML page) in which the applet
is embedded.
I need to sprout another browser window and write HTML content on it
from the running Applet, to display some data content of applet in
printable format.
This was working perfectly fine as long as I was using the Netscape JRE,
and specifying the MAYSCRIPT attribute in the APPLET element in the HTML
file.
Now, I am using JApplet and many of the Swing classes, and hence have to
use the plugin JRE.
I converted my HTML file with the JavaSoft Plugin converter.
However,it refused to recognise the MAYSCRIPT tag,omitting the attribute
in the output HTML file.As a result I am getting an exception while
getting the JavaScript window object in my Applet method.
Manually editing the converted file did not help.
Does anyone know how I can get the Javascript object in an Applet while
using the JavaSoft plugin JRE?
What is the netscape.plugin.Plugin class used for ? will it help me?
Thanks a lot in advance.
regards,
Swapnil
----------------<< "[EMAIL PROTECTED]" FOOTER MESSAGE >>---------------------
To leave list [EMAIL PROTECTED], please direct the one-line message
unsubscribe JAVA
to email address
[EMAIL PROTECTED]
If you have difficulties unsubscribing, please direct email to
[EMAIL PROTECTED]
York University, Toronto Canada
http://www.yorku.ca
-----Original Message-----
From: Swapnil Deshmukh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 21, 2000 6:42 AM
To: [EMAIL PROTECTED]
Subject: offtopic: Applet to JavaScript in Plugin Environment]
Hi All,
I didn't get the solution to my problem in java-javascript related
mailing lists. So, I am mailing this query to you guys.
Sorry for the inconvenience...but i need the solution ...urgently.
regards,
Swapnil
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html