NYCPHP Meetup

NYPHP.org

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

Mark Armendariz nyphp at enobrev.com
Thu Oct 30 16:54:09 EST 2003


Definitely makes sense, and somewhat as I expected... Does that work fairly
well cross browser? 

Thanks for the quick reply!!

Mark

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of D C Krook
Sent: Thursday, October 30, 2003 4:44 PM
To: talk at lists.nyphp.org
Subject: Re: [nycphp-talk] Waiting for query redirect...

>... 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

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk






More information about the talk mailing list