NYCPHP Meetup

NYPHP.org

[nycphp-talk] Waiting for query redirect...

D C Krook dkrook at hotmail.com
Thu Oct 30 16:44:28 EST 2003


>... Where it waits for a full response to
>load showing a temporary page and then redirects to the query display once
>fully loaded.

I have had success doing this in JavaScript the following two ways.

To show/hide the loading message on the same page as the results:
- Place your loading message in a block element such as a TD or DIV with an 
id of "loading".
- As the last line of the body in your document (and thus the last to load), 
use the following to hide it. 
<script>document.getElementById("loading").innerHTML = "";</script>

To redirect after page loads:
- As the last line of the body in your document (and thus the last to load), 
use <script>location.href='confirmation.html'</script>





==========================================
Daniel Christer Krook
http://krook.net/ || http://krook.info/
http://civet.net/ || http://dev.krook.org/

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the talk mailing list