I'm not sure it helps him either, except maybe in understanding why
three clicks turned into two method calls. The tweak on the client
machine was only a debugging trick.
Mike Snare wrote:
>Not sure that helps him. It's not feasible to expect people to tweak
>their OS settings to fit your app, so we have to fix it on our side.
>
>Unless I misunderstood your intent...
>
>-Mike
>
>On 4/12/06, Bryan Lewis <[EMAIL PROTECTED]> wrote:
>
>
>>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]
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>