Subject | Re: [firebird-php] Duplicate numbers |
---|---|
Author | Jochem Maas |
Post date | 2006-05-23T14:17:44Z |
Milan Babuskov wrote:
> Jochem Maas wrote:interesting - will keep that in mind :-)
>
>>ai, a submit handler - the first thing it does it disable to the submit button,
>>then is submits the form.
>
>
> I found that this doesn't work on some browsers (can't remember which one and
> which version), so I add an additional boolean flag to check:
>
> <input type=hidden name=clicked value=0>
>
> <input type=submit value=Go onClick="return check();">
>
> <script>
> function check()
> {
> if (document.form.clicked.value == 1)
> {
> alert('You already clicked. Please wait.');
> return false;
> }
> document.form.clicked.value = 1;
> return true;
> }
> </script>
>
>lateral thinking dude ;-)
>>>>Customers are called to a counter or room by ticket number - need I say
>>>>more ;)
>>
>>well what happens if one runs out of rooms ;-)
>
>
> Buy a bigger building ;)
>
>