Greetings,

I have form with t:commandButton. When the user clicks twice on the button two requests (including the form data) are sent. I thought how to solve this problem on client side and tried the following ways: 1. ...onclick = "this.disabled='false' " - in this case the form is submitted and validators works, but action for this command button is not performed. 2. ...onclick = "clickCounter++; if (clickCounter > 1) { return false; }" works for IE, Chrome but doesn't work for FF. It sends two requests. Btw, it works if 'alert' added before return false;
(clickCounter global variable)
3. ...onclick = "this.style.visibility='hidden'" works. But I don't want to hide the button because of it looks strange :)

Do you have idea how to solve this problem in other way?

Thanks in advance.
--
Best Regards,
Dmitry Kudrenko
ARDAS group (http://www.ardas.dp.ua)

Reply via email to