🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.javascript
Article #15

Re: applet in new window

#15
From: Brian Matzon
Date: Thu, 04 Oct 2001 11:27
34 lines
2768 bytes
"Nikolaj" <nik@email.dk> wrote in message news:9phfqk$11ql$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.
>
> 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

Please don't cross-post to so many groups!

As for the solution:
Vreate a small applet, which when clicked opens a frame containing your
"application"

/Brian Matzon
Technical Details
Message-ID: <4JXu7.1511$uQ.223819@news010.worldonline.dk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.54.64.131!news100.image.dk!news010.worldonline.dk.POSTED!not-for-mail
References: <9phfqk$11ql$1@news.cybercity.dk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bacc,e4b41bd7068a83a9
X-Google-Attributes: gid10bacc,public
X-Google-Thread: f9a23,e4b41bd7068a83a9
X-Google-Attributes: gidf9a23,public
X-Google-Thread: fb3cb,e4b41bd7068a83a9
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: 10a146,e4b41bd7068a83a9
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113fd6,e4b41bd7068a83a9
X-Google-Attributes: gid113fd6,public
X-Google-ArrivalTime: 2001-10-04 04:28:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.54.64.131!news100.image.dk!news010.worldonline.dk.POSTED!not-for-mail
From: "Brian Matzon" <brian@matzon.dk>
Newsgroups: comp.lang.java.javascript,comp.lang.java.programmer,comp.lang.javascript,dk.edb.programmering.java,it.comp.lang.javascript
References: <9phfqk$11ql$1@news.cybercity.dk>
Subject: Re: applet in new window
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <4JXu7.1511$uQ.223819@news010.worldonline.dk>
Date: Thu, 4 Oct 2001 13:27:56 +0200
NNTP-Posting-Host: 213.237.41.24
X-Complaints-To: news-abuse@wol.dk
X-Trace: news010.worldonline.dk 1002194880 213.237.41.24 (Thu, 04 Oct 2001 13:28:00 MET DST)
NNTP-Posting-Date: Thu, 04 Oct 2001 13:28:00 MET DST
Organization: Customer of Tiscali A/S (World Online)