how to implement Please wait page....?

P

puja patel

hi all,

I am developing a shopping cart website in C# where after selecting item,
user enters credit card details and click on submit button.This request is
then processed by the gateway which usually takes from 5-10 sec of waiting
period to get response back if the transaction was approved of declined.

I want to implement page which says "Please wait...your request is being
processed." after user clicks on submit button and before I get response.
Could anyone please help me as how this can be done ?

thanks
puja
 
M

Michael C

puja patel said:
hi all,

I am developing a shopping cart website in C# where after selecting item,
user enters credit card details and click on submit button.This request is
then processed by the gateway which usually takes from 5-10 sec of waiting
period to get response back if the transaction was approved of declined.

I want to implement page which says "Please wait...your request is being
processed." after user clicks on submit button and before I get response.
Could anyone please help me as how this can be done ?

It's scary to think you're dealing with credit card transactions and asking
this question.

Michael
 
G

Guest

This could be realized with Async methods calls. Look at AJAX realization
like ATLAS (.net 2.0), MagicAjax (.net 1.1, 2.0)
They offer you a such functionality and have samples

BTW, if you don't wont to use that libraries you can realize this
functionality by your own using XML HTTP request (google by this words to get
information)
I am developing a shopping cart website in C# where after selecting item,
user enters credit card details and click on submit button.This request is
then processed by the gateway which usually takes from 5-10 sec of waiting
period to get response back if the transaction was approved of declined.

I want to implement page which says "Please wait...your request is being
processed." after user clicks on submit button and before I get response.
Could anyone please help me as how this can be done ?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
J

JimD

puja said:
hi all,

I am developing a shopping cart website in C# where after selecting item,
user enters credit card details and click on submit button.This request is
then processed by the gateway which usually takes from 5-10 sec of waiting
period to get response back if the transaction was approved of declined.

I want to implement page which says "Please wait...your request is being
processed." after user clicks on submit button and before I get response.
Could anyone please help me as how this can be done ?

thanks
puja

There are tons of ways and it really depends on how everything is setup.
For example, I did a "please wait..." page with a little animate gif as
a waiting for a web app that pulls data from a big Oracle data
warehouse. The setup is simple. I created the page that pulls and
displays the data. However, instead of linking to that page, I link to
a simple html page with the please wait... and graphic. The wait page
just has a <body onload=""> script that sets location.href to the page
that actually pulls and displays the data. This way your browser will
still display the "wait" page while it is waiting to get the completed
response for the long loading page.

Then there was another one that was more complex and the page had a meta
refresh tag. The page would check a database record to see if a
transaction was completed. If so, it would go to the final destination
page, if not it would just go back to itself and refresh.

So it all comes down to how you have everything setup. If you are
calling one page that takes 5-10 seconds, then just do the simple
"please wait..." setup I listed first. If the setup is more complex,
then post more details so others and I can help give you better ideas.

Jim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
You roll an 18 in Dex and see if you
don't end up with a girlfriend
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
JimD
Central FL, USA, Earth, Sol
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top