Javascript is not called by AjaxSubmitButton

2010-04-22 Thread Kalpana Vaka
Hi All, I have javascript file validation.js with all the client side validations for text, numbers, dates etc.,. When I use WOJavascript with normal submit button, the validations are being raised. But, when I use AjaxSubmitButton instead of normal submit button, the validations from the js

Re: Javascript is not called by AjaxSubmitButton

2010-04-22 Thread Farrukh Ijaz
If you're validation script is running on form's onSubmit event. I suspect these scripts won't get fired with AjaxSubmitButton however you can fire them in onClickBefore event of AjaxSubmitButton and if the script returns true the data will be posted to the action E.g. Case 1: Normal Submit

Re: Javascript is not called by AjaxSubmitButton

2010-04-22 Thread Kalpana Vaka
Hi Farurukh, Thanks for your help. My validation script is running on form's onClick event. If I write the javascript directly in the WOComponent, it is getting called by AjaxSubmitButton. When we use external js file, then the functions in external js functions are not getting fired. Pleae