I am also looking to open a browser with some url, when they click on the
button. Can you post some example code for this?
Thank you
Madhavi
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Sandeep Malhotra
Sent: Thursday, April 13, 2000 9:22 AM
To: [EMAIL PROTECTED]
Subject: Re: OffTopic (Applet)
Though this question is off topic and the solution is a more
Javascript->Java communication based, still I'll tell you in short about
what I did to achieve the functionality. I was having a Javascript function
on the page that was checking for a flag in the applet after every second.
The moment that flag was true, it extracted the required information from
the applet by calling appropriate methods and triggered window.open(....)
method.
However, like Swapnil, I really don't know how would this solution work with
javasoft plugin 1.2 jre, coz I did that with applet made in jdk 1.02.
I know if this works, it will give you a completly different solution, but
it still worth trying.
-Sandeep
----- Original Message -----
From: Swapnil Deshmukh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 13, 2000 7:50 AM
Subject: Re: OffTopic (Applet)
> Hi John,
>
> netscape provides netscape.javascript package
> it can be found in the java40.jar or similar jar file among the jar
> files that come with the browser..
> u can use a static method of its JSObject to get handle on the parent
> window(a javascript object) in which the applet is running...
> then invoke methods on it to get its child objects,
> and you can in turn invoke methods on them
> most javascript books would have some samples.
> this works only if u r using netscapes jre..
> i don't know how to make it work with javasoft plugin 1.2 jre
> kindly let me know if are able to find a way around it.
>
> hope this helps.
>
> Swapnil
>
> John John Tobias wrote:
> >
> > Good day!
> >
> > Is there anyway in applet to open a new Browser with a specific
settings?
> >
> > the following code is in java script..
> >
window.open("","_blank","width=350,height=400,resizable=yes,toolbar=0,scroll
bars=1,status=no,menubar=0,location=0,top=10,left=580")
> >
> > how can i invoke the following code in applet?
> > or how could i invoke a URL in the browser without its toolbar, status
bar
> > and other buttons?
> >
> > Thanks,
> > John
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
___________________________________________________________________________
> > 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
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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
___________________________________________________________________________
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