NYCPHP Meetup

NYPHP.org

[nycphp-talk] Please wait, processing, message technique

Cliff Hirsch cliff at pinestream.com
Tue Jul 10 13:31:27 EDT 2007


For long and indeterminate page processing, like connecting with a credit
card payment gateway or calculating pi to thousands of significant digits,
what is your preferred method for displaying ³please wait²?

I see two techniques:
1. Use Javascript upon form submission to display the ³please wait² message
2. Echo a ³please wait² page from the server and then do a 302 redirect upon
completion of the scrpt.

Issues:
1. Not everyone uses JavaScript
2. Can you issue a header redirect after echoing a ³please wait² message. I
though headers need to be sent first. Is a 302 header redirect an exception?

Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070710/31c1e8eb/attachment.html>


More information about the talk mailing list