[PHP] Re: Please wait page while processing - SOLVED

2004-12-04 Thread Geoff Caplan
Hi

For anyone interested, it was a combination of issues.

First, I had to use flush() and ob_end_flush() combined to
get the page to display in IE. end_flush didn't work on its
own.

Second, I was being dim in redirecting away from the message
page - because of course it won't display after a redirect.
So you have to do the processing in the message script,
saving the result to the session. Then keep polling the
message page with a client-side refresh till the gateway
processing completes and you can re-direct to the result
page.

GC I'm writing a checkout.

GC When user submits their card details, I want to redirect
GC them to page with a please wait message. Then redirect to
GC the script that does the payment processing. Then when I
GC have the response from the gateway, redirect again to the
GC result page.

form - message - processor - result_page

GC I've seen this done but I can't figure out how.

-- 
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: Please wait page while processing

2004-12-03 Thread Tim Owens
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:[EMAIL PROTECTED] 
Sent: Saturday, 4 December 2004 7:52 a.m.
To: [EMAIL PROTECTED]
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 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php