Re: need "Working..." pop up dialog

From: Date: Sun, 19 Aug 2001 02:57:10 +0000
Subject: Re: need "Working..." pop up dialog
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63343@lists.php.net to get a copy of this message
> I'm trying to get a "working..." informational dialog or window going > with my PHP page but I'm not getting anywhere. Here's the situation: > > When the user clicks on a link that has to gunzip a very large file, I > want a popup to say "Working..." while the file is uncompressing. > Then, when the file is uncompressed, I want the "Working..." popup to > close itself and then the parent window to load a new URL (where it > will use the uncompressed file). > > I've tried doing this with Javascript and window.open(), but I'm having > no luck. Any ideas? You also need to use those layer thingies with DHTML or whatever... I archived a sample somewhere... Ah, here it is: (This is somebody else's code, not mine) ============[ code ]============ <HTML> ..<header and stuff>... <BODY onload=" if (IE) { wait.style.display = 'none'; } else { document.layers['wait'].visibility='hidden'; }"> <DIV style="position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: wait;" id="wait"> <TABLE border="0" width="100%" height="100%"> <TR> <TD width="100%" valign="middle" align="center"> One moment please... <BR> <BR> <BR> Loading directory listing </TD> </TR> </TABLE> </DIV> ..<the rest of the page (reason of wait screen) >... </BODY> </HTML> ==========[ end code ]========== NOTE: You should change 'if (IE)' to something usefull. If you just copy/paste this code, you'll get a javascript-error because IE isn't defined (it is on my site, :-)). * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- «««««««««««««««««««««««« -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#63343) next »