I would like to code my submit web control button with a timer on it. Its suppose to allow submission until time goes up and the button is disabled from submission. Any directions or tutorials on this?
Naters_uk
0
Junior Poster in Training
Recommended Answers
Jump to Posteasiest way is javascript
<html> <head> <script language="JavaScript"> <!-- function setDisableButtonTimer(){ disableButtonTimer = setInterval("disableButton()", 5000); } function disableButton(){ document.form1.btnSubmit.disabled = true; clearInterval(disableButtonTimer); } --> </script> </head> <body onload="setDisableButtonTimer();"> <FORM ACTION="test.asp" METHOD="POST" name="form1" > <SELECT NAME="MyListBox" Size="11" MULTIPLE> <OPTION VALUE="0">CustomerID <OPTION VALUE="1">CompanyName <OPTION VALUE="2">ContactName <OPTION VALUE="3">ContactTitle <OPTION VALUE="4">Address …
All 3 Replies
campkev
0
Posting Pro in Training
Naters_uk
0
Junior Poster in Training
campkev
0
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.