Disabling button onclick in IE

From: Date: Tue, 01 Dec 2009 21:06:14 +0000
Subject: Disabling button onclick in IE
Groups: php.general 
Request: Send a blank email to php-general+get-300181@lists.php.net to get a copy of this message
Hey all, You probably remember me asking about disabling a submit button when it is clicked to prevent double clicks submitting a form for CC processing. I put the following code into the submit button and it works fine on FireFox, but... hold your breath... not on IE. The button gets disabled but the form just sits there, not submitting. At first I just had onclick="this.disabled=true;" and that worked in FF also, but not in IE. Then I added the document.ticket_form.submit(); But even that doesn't work with IE. Below is the whole snippet for the button. <input type="submit" name="submit" value="Purchase Ticket(s)" id="submit_tickets" onclick="this.disabled=true; document.ticket_form.submit();"> Any suggestions would be greatly appreciated. Thanks, Skip -- ==================================== Skip Evans PenguinSites.com, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://penguinsites.com ------------------------------------ Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut

« previous php.general (#300181) next »