469,600 Members | 2,189 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

Prevent form submission twice on doubleclick in NN6.

I have a form in which I have this link :- <
href="javascript:submitform(parameters );"> . In the JavaScript
function submitform, there is the code for submitting the form.Thi
works fine with single click on both IE,NN6.In IE the form is submitte
only once even for double click.But if you double click on the link i
NN6, the form is submitted twice. This causes problem. The workaroun
for this was that we set a flag(indicating form submission) in th
submitform function, we also set a timer which calls the functio
resetflag after 3 seconds.So any click within 3 seconds of the firs
click will be ignored (so that the form is not submitted for the secon

function submitform(params)
timeout = setTimeout('resetflag()',3000);
document.form1.action = someURL;


function resetflag()
Jul 20 '05 #1
1 2397
"G4Gun" <G4**********@mail.forum4designers.com> wrote in message

fourm4designers.com is a bad place to read comp.lang.javascript from
because their presentation of the group garbles the Usenet posts it is
derived from. Removing *significant* formatting, omitting sections and
adding text and white space that was not part of the original posts to
Usenet. And they only report a fraction of the posts made to the
group, giving an incomplete and inaccurate representation of the group.

In addition, the posting mechanism used by forum4designers.com fails
to properly implement RFC 1036 (Standard for Interchange of USENET
Messages), and in a way that is likely to result in confusion as to
conversational flow and intended respondee for anyone using genuine
Usenet software.

forum4designers.com is also a bad pace to ask javascript questions
from because their misrepresentation of the group, combined with
deliberate deceptions about the nature of the service that they
provide, have resulted in a level of resentment of
forum4designers.com that will negatively impact on anyone who decides
to associate themselves with that web site.

But being aware that forum4designers.com may not report posts made in
response to questions asked from there, and will actively
modify/distort any responses they do show, potential responders may
consider it a waste of there time to put any effort into responding to
posts originating from forum4designers.com even if they have no
attitude towards that site.

Many other sites provide superior web-based access to Usenet, and
often without distortion or omission, including groups.google.com
(who also provide extensive and flexible archive searching
facilities). But the best method of reading and posting to
comp.lang.javascript is through a news server via (standard and
standards conforming) newsreader software.

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by entoone | last post: by
2 posts views Thread by Pamela Chatterjee | last post: by
6 posts views Thread by nick4soup | last post: by
6 posts views Thread by Stanimir Stamenkov | last post: by
6 posts views Thread by smk17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.