Re: status page between submit and results
| From: | Web Admin | Date: | Sat, 24 Feb 2001 15:48:35 +0000 |
| Subject: | Re: status page between submit and results | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41486@lists.php.net to get a copy of this message | ||
Here?! Sunny today! ;-)
I highly suggest you use client side scripting in this case.
onLoad
Event handler. A load event occurs when Navigator finishes loading a window or all frames within a
<FRAMESET> tag. The onLoad event handler executes JavaScript code when a load event occurs.
Here's a sample code for your result page:
<body onload=document.loadingimage.src='blank.gif'>
...... Some Coding Here .......
<p align=center><img src=loading.gif name=loadingimage></p>
...... The rest of coding......
</body>
That's the snippiest piece of code. [I didn't test it, however, I'm sure that it work
out]
Create a loading.gif animation gif which shows a [Loading...] animation.
It will be replaced by a blank gif file named blank.gif which shows a blank screen.
Take care,
Ahmad Anvari
----- Original Message -----
From: Mitchell Hagerty
To: php-general@lists.php.net
Sent: Saturday, February 24, 2001 7:02 PM
Subject: [PHP] status page between submit and results
Blizzard here, hows the weather there? :)
The website I am working on has several forms, a search, and a login that can take close to a
minute depending
on much traffic it is recieving. I've noticed on other sites ("paypal" for
instance) that when you submit it throws up
a "loading..." page that goes onto the results page when it is returned.
any ideas on how to do this?
tks
mitch
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net