Web Hosting, Design, & Coding forum

General discussion

Button becomes unclickable

by Sovereign Forum moderator / March 31, 2004 4:24 PM PST

You know when you submit a form and sometimes people are afraid that visitor submits more than once? Some people make the button unclickable after you clicked once- how does that work?

Discussion is locked
You are posting a reply to: Button becomes unclickable
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Button becomes unclickable
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re:Button becomes unclickable
by David Solum / April 1, 2004 7:57 AM PST

What is an example site that does this? It should be easy to view the source and look for javascript, on either the button onclick or form onsubmit events, to disable the button.

Collapse -
Re:Re:Button becomes unclickable
by Sovereign Forum moderator / April 1, 2004 2:06 PM PST

Yeah I figured it out. I finally figured what I had to search on because I didn't know what you call such feature.

Collapse -
Re:Re:Button becomes unclickable
by bergen--2008 / July 9, 2004 3:02 PM PDT

<form name=fm>
<input type=button name=myButn id=myButn onclick="clkit(this)">
</form>

<script language=Javascript>
function clkit(elem)
{
var e = elem.name;
var f = "document.fm"+e;
if ( routn == true )
{
eval(f).style.disabled = true;
document.fm.submit();
}
}

function routn()
{
// error checking code for form goes here.
}
</script>

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?