2 Replies Latest reply on Feb 12, 2008 8:24 AM by juanignaciosl

    Intercepting form submit at dataScroller

    juanignaciosl

      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?