![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Hi, I have a problem and i need some help. I have a page where user enters the personal information and credit card details. when he hits submit it runs the credit card and dumps the information into the table. What i want to do is when the user hits submit button i want to show a page where it says processing. right now i have my form tag like this <form method="POST" name="frm1" id="frm1" action="confirmadd.asp" onsubmit="return formCheck(this);"> can someone tell me how i can make it happen. todd |
| Sponsored Links |
|
#2
| ||||
| ||||
| in confirmadd.asp have this code on top of your code: Code: Response.Write("<div id=""pnlPleaseWait"">Processing request, please wait...</div>")
Response.Flush
Code: Response.Write("<script type=""text/javascript""> document.getElementById(""pnlPleaseWait"").style.display = ""none""; </script>")
Response.Flush
|
| The Following User Says Thank You to Shadow Wizard For This Useful Post: | ||
mehere (August 26th, 2008) | ||
|
#3
| |||
| |||
| shadow, thanks for your help. I tried ur code I tweaked it a little to add a image Code: Response.Write("<div id=""pnlPleaseWait""><img src=/images/Loading.gif>Your Request is Processing...<br/> do not press Back button.</div>")
I have this code Code: Response.Write("<script type=""text/javascript""> document.getElementById(""pnlPleaseWait"").style.display = ""none""; </script>")
Response.Flush
what happens is it always shows me the earlier code which has the image in it. any idea because once the credit card is processed i want to see the rest of the page. todd |
|
#4
| |||
| |||
| Ok i found out what the problem is I have the code like this Code: Response.Write("<div id=""pnlPleaseWait""><img src=/images/Loading.gif>Your Request is Processing...<br/> do not press Back button.</div>")
Response.Flush
---- do credit card processing ---
Response.Write("<script type=""text/javascript""> document.getElementById(""pnlPleaseWait"").style.display = ""none""; </script>")
Response.Flush
Now i see if the credit card did go through or it was decline
If Result=0 then
"Credit card went through
Else
"credit card didnt go through"
Response.Redirect("decline.asp")
End if
but right now if the credit card is decline it doesnt redirect to the decline.asp page it just shows a blank page. any idea todd |
|
#5
| ||||
| ||||
| after using Flush you can't Redirect.. doing so will result in error. since Flush is essential for what you need here, you have two main options:
|
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Slow Page Processing | richyrich | .Net Development | 29 | August 11th, 2008 04:13 AM |
| go page to page questionaire app | peebman2000 | .Net Development | 3 | April 26th, 2008 04:42 PM |