HomeHome Product Discus... Product Discus...SmithCartSmithCartProcessing order button....Processing order button....
Previous
 
Next
New Post
3/11/2011 8:31 AM
 

OK, I know that it has been a long-time discussion about the Process Order button getting clicked multiple times, and the difficulty in "turning off" a button... BUT..... here's a thought.

(Pseudo-Code follows)

<div ID="PreButtonPush"><img src="ClickToProcessOrder.gif"></div><div ID="PostButtonPush" visible="false"><img src="Processing.gif"></div>

' Button pushed

PreButtonPush.Visible = False

PostButtonPush.Visible = True

... so just hide the one button, and unhide the graphic, when the button is pushed.

Can that be done easily?

 
New Post
3/11/2011 8:46 AM
 

I have working code for this but just started installing VS2010 SP1. I'll post my fix in about an hour.

 
New Post
3/11/2011 2:59 PM
 

A little clunky but it works with v4.21. Hopefully CSS and themes can be fixed to include a blank button for text.

function ShowProgress(button) {
// hide submit button
button.style.display = "none";
// show wait button
document.getElementById("btnWait").style.display = "";
return true;
}

asp:Button ID="btnSubmit" runat="server" OnClientClick="return ShowProgress(this);" OnClick="btnSubmit_Click" CssClass="orangePlaceOrder"/
input type="button" id="btnWait" style="display:none;" disabled="disabled" value="Please Wait..."/

Sorry about the formatting.

 
New Post
3/12/2011 5:00 PM
 

I'm not running 4.21 yet...

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartProcessing order button....Processing order button....