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 Help 51,912 discussions
icon
Computer Newbies 10,498 discussions
icon
Laptops 20,411 discussions
icon
Security 30,882 discussions
icon
TVs & Home Theaters 21,253 discussions
icon
Windows 10 1,672 discussions
icon
Phones 16,494 discussions
icon
Windows 7 7,855 discussions
icon
Networking & Wireless 15,504 discussions

REVIEW

Meet the drop-resistant Moto Z2 Force

The Moto Z2 Force is really thin, with a fast processor and great battery life. It can survive drops without shattering.