The operating system will combine fast double clicks into a single event. When I've had to test such things on a Windows client machine, I went into the mouse control-panel widget and upped the double-click speed so that I could click twice before the page went away, but without my sequence being recognized as a double-click.
Dan Adams wrote: >Okay, I've got the common problem where I want to prevent some users >from double clicking submit buttons and double submitting a form. I've >got the following script which seems to work except that it seems to >miss one of the clicks. If you double click, it still double submits the >form. If you triple click, however, it double submits like before but >then you get an alert that says 'already submitted 2' meaning that >checkSubmit() has only been called twice. Is there something I'm >missing? Thanks. > ><script> > <input-symbol key="form" class="org.apache.tapestry.form.Form" >required="yes" /> > > <let key="checkSubmit" unique="yes">checkSubmit</let> > <let key="submitted" unique="yes">submitted</let> > > <body><![CDATA[ >var ${submitted} = false; >var count = 0; > >// ensures that the form is only submitted once >function ${checkSubmit}() { > var ret = true; > count++; > > if (${submitted} == true) { > alert('already submitted ' + count); > ret = false; > } > > ${submitted} = true; > return ret; >} > > ]]></body> > > <initialization><![CDATA[ >Tapestry.onsubmit('${form.name}', ${checkSubmit}); > ]]></initialization> > ></script> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]