[Javascript] Thanks & follow-up, was: Handling child window visibility...

Hassan Schroeder hassan at webtuitive.com
Thu Aug 12 11:00:27 CDT 2004


Shawn Milo wrote:

> Follow-up question:  Although this works, it does not 
> bring up the window until the page has loaded (obviously),
> and since the page is running some ASP code and reading
> from a database, it could take a few seconds.  In that time,
> the person could click the button again, thus re-starting
> the entire process.
> 
> So is there a way to, from JavaScript included on the main
> page, bring that window to the fore? If not, I suppose that 
> I could always disable the button temporarily, and replace
> the button value with 'Please Wait'.  Ideas?

Alternatively, you could decouple your popup window from the running
background process by using frames or an iframe, so the main part of
the window loads immediately, grabs focus, and waits for the DB data
(while possibly displaying a "loading..." message).

FWIW,
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list