Pfau, Oliver wrote:
Hi,
I have a onclick JavaScript function on a commanButton. When user clicks the button, the button will be disabled to avoid double submit. But with the definition of a onclick function the navigation fails. My button leads to another JSP. Without onclick it works fine. With onclick the same page refreshs.
Any idea ?

The standard behaviour of HTML is for the submit to be cancelled if the onclick function returns false. Are you sure the page is submitting at all?

try:
  onclick="doMyStuff(); return true;"

Reply via email to