Subject | Re: [firebird-php] Duplicate numbers |
---|---|
Author | Milan Babuskov |
Post date | 2006-05-23T14:03:15Z |
Jochem Maas wrote:
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>
--
Milan Babuskov
http://www.flamerobin.org
> ai, a submit handler - the first thing it does it disable to the submit button,I found that this doesn't work on some browsers (can't remember which one and
> then is submits the form.
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>
>>>Customers are called to a counter or room by ticket number - need I sayBuy a bigger building ;)
>>>more ;)
>
> well what happens if one runs out of rooms ;-)
--
Milan Babuskov
http://www.flamerobin.org