RE: "Please wait" page while processing

From: Date: Sat, 04 Dec 2004 02:33:04 +0000
Subject: RE: "Please wait" page while processing
Groups: php.general 
Request: Send a blank email to php-general+get-203485@lists.php.net to get a copy of this message
I used a little javascript to reveal a message, then submit the form. Hence the message stays there until the next page loads: <SCRIPT LANGUAGE="JavaScript"> <!-- function checkFields(fieldNames, displayText) { //etc... if(ok) document.all.please_wait.innerHTML="Storing data - please wait"; return ok } --> </SCRIPT> ... <input type="image" onclick=" return checkFields()" src="images/next_button.gif" name="next" border="0" value="submit" alt="Next"> <span id="please_wait"></span> Not that it's PHP, but it works... Tim Owens -----Original Message----- From: Geoff Caplan [mailto:geoff@variosoft.com] Sent: Saturday, 4 December 2004 7:52 a.m. To: php-general@lists.php.net Subject: "Please wait" page while processing Hi folks - I'm writing a checkout. When user submits their card details, I want to redirect them to page with a "please wait" message. Then redirect to the script that does the payment processing. Then when I have the response from the gateway, redirect again to the result page. form -> message -> processor -> result_page I've seen this done but I can't figure out how. The browser (IE) simply shows the initial card details form until the processing is complete, then shows the final result page. I can't get it to show the message page in the middle. Any suggestions would be welcome! ------------------ Geoff Caplan Vario Software Ltd (+44) 121-515 1154

« previous php.general (#203485) next »