Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Popup window


Message #1 by Ankur Kalsi <ankurak@q...> on Fri, 16 Mar 2001 10:52:44 -0800
You can avoid a separate window by using an invisible DIV.
You only need to set the visibility style attribute.
And you can also update its contents to show progess.
The user can not 'close' the DIV.

Regards,
Kees

----- Original Message -----
From: "Julian Dobson" <juliand@w...>
To: "javascript" <javascript@p...>
Sent: Friday, March 16, 2001 10:27 PM
Subject: [javascript] RE: Popup window


> The answer's pretty simple:
>
> Before you start processing, have the following code:
>
> var obj_PopupWindow;
>
> obj_PopupWindow = window.open('PleaseWait.html');
>
> Then, once you've finished processing:
>
> obj_PopupWindow.close();
>
> You might want to include more parameters in the window.open command so
that
> the resulting window can't be resized, etc. And, as you can't stop the
user
> from closing the popup themselves, you should really check to see if the
> window is still open before closing it:
>
> if(!obj_PopupWindow.closed) obj_PopupWindow.close();
>
> Julian Dobson
> Systems Developer
> Wrox Press Inc
> http://www.wrox.com
>
> Tel:  (xxx) xxx xxxx
> Fax:  (xxx) xxx xxxx
> Pager:  (xxx) xxx xxxx
> Mobile:  (xxx) xxx xxxx




  Return to Index