Thread View: comp.lang.java
2 messages
2 total messages
Started by Nikolaj
Thu, 04 Oct 2001 15:58
applet in new browserwindow
Author: Nikolaj
Date: Thu, 04 Oct 2001 15:58
Date: Thu, 04 Oct 2001 15:58
25 lines
2508 bytes
2508 bytes
I want to create the "illusion" that the user starts an application from a browser. The application is actually an applet running in a new browser-window of its own. My idea is to have a button on an html-page. When the button is pressed I want to open a new window. (Can this for instance be done with java-script?). In the new window (which shouldn't have an addressbar, toolbar, statusbar etc. from the browser) I want to place my applet. I'm sure all of the above can be done but I'm not sure how. The interesting question however is: Can I somehow in my applet listen to the browser-window, and detect if it's beeing closed. And even more interesting. Can I warn the user if he tries to close the window and ask if he wants to cancel the operation? Hope you can help with all or any of the above. Thanks. I have some experience with java, but none with javascript, so I don't no what part of this should be done in java and what part should be done in javascript.. Nikolaj
Re: applet in new browserwindow
Author: Paul Lutus
Date: Thu, 04 Oct 2001 16:12
Date: Thu, 04 Oct 2001 16:12
21 lines
2822 bytes
2822 bytes
"Nikolaj" <nik@email.dk> wrote in message news:9pi18v$1tvg$1@news.cybercity.dk... > I want to create the "illusion" that the user starts an application from a > browser. The application is actually an applet running in a new > browser-window of its own. > > My idea is to have a button on an html-page. When the button is pressed I > want to open a new window. (Can this for instance be done with > java-script?). > In the new window (which shouldn't have an addressbar, toolbar, statusbar > etc. from the browser) I want to place my applet. > > I'm sure all of the above can be done but I'm not sure how. On the contrary, this cannot be done, and there are reasons it cannot be done. The user must know that an applet is running, and not confuse it with something else. This is part of the security sandbox surrounding applets. -- Paul Lutus www.arachnoid.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads