SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 4th, 2000, 07:37 AM
ssvr6
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I'm having trouble when my users are submitting a form. While the confirmation screen is loading they get impatient and click on the submit button again. I have code in there to prevent them from double clicking on it but would rather disable the submit button all together if that's possible.
Any and all help would be appreciated.

Steve

Reply With Quote
  #2  
Old August 5th, 2000, 11:25 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
<script>
var xx=0;
function stopit(){
if(x==1){alert("stop it that hurts!");x=1;return false;} else {x=1;return true;}
}
</script>

<form onSubmit="return stopit()" etc....>

Only submits once per page view.


------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #3  
Old August 7th, 2000, 06:26 AM
ssvr6
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I had come to a similar conclusion. I was able to physically disable the button for IE but not for netscape. We just disabled the ability to submit twice.

Thanks for help!

Steve

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Disabling a Submit Button as an Onclick Event


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway