467,118 Members | 995 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,118 developers. It's quick & easy.

how to implement Please wait page....?

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

Jun 5 '06 #1
  • viewed: 3240
Share:
4 Replies
"puja patel" <pu********@leap.com.au> wrote in message
news:O$**************@TK2MSFTNGP03.phx.gbl...
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
Jun 5 '06 #2
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

Jun 5 '06 #3
Puja,
here is an article with a simplified approach to this:

http://www.eggheadcafe.com/articles/20050108.asp

Be aware that there are at least 10 other ways to accomplish this effect,
including but not limited to Michael's XMLHTTP approach.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"puja patel" wrote:
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


Jun 5 '06 #4
puja patel wrote:
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
Jun 5 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Danny Masti | last post: by
4 posts views Thread by Dennis M. Marks | last post: by
4 posts views Thread by Stephajn Craig | last post: by
3 posts views Thread by Lucas Tam | last post: by
5 posts views Thread by Chris | last post: by
5 posts views Thread by Jeremy@thebunnyshed.co.uk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.