2 Replies Latest reply on Feb 12, 2008 8:24 AM by Juan Ignacio Sánchez Lara

    Intercepting form submit at dataScroller

    Juan Ignacio Sánchez Lara Apprentice

      I want to display a confirm() box when the user presses dataScoller. Something like "if you move the pager data will be lost. Are you sure?". I've tried with <a4j:form onsubmit="if(!confirm('R U sure?') {return false;}">, but when user presses 'cancel' dataScroller stops working.

      At dataScroller onclick won't work, either.

      How can I do this?