Hi James, well that's the issue - it *does* call the function - I've tested this umpteen times, and the function gets called and works perfectly. If I add a second submit() to the function itself then it will submit the form - otherwise it just executes then stops... no errors anywhere.
cheers, Toby Friday, October 3, 2003, 12:05:23 PM, you wrote: JS> Toby, im pretty sure submitting a form programmatically bypasses the JS> onSubmit event handler. JS> What i suggest you do is remove the onSubmit event handler from the FORM JS> tag, then create a single javascript function to handle your form JS> validation. JS> Use a regular link which (onClick) triggers your form validation function. JS> If it passes, do a submit() else alert() the user. JS> Or, you could do what i would do... leave the previous (working) code in JS> place and use CSS to style the submit button to look just like any other JS> link on your page :) JS> ____________________________ JS> James Silva JS> Web Production JS> Gruden Pty Ltd JS> Tel: +61 02 9956 6388 JS> Fax: +61 02 9956 8433 JS> Email: [EMAIL PROTECTED] JS> Web: http://www.gruden.com JS> ____________________________ JS> --- JS> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] JS> To unsubscribe send a blank email to [EMAIL PROTECTED] JS> MX Downunder AsiaPac DevCon - http://mxdu.com/ -------------------------------- Life is Poetry, write it in your own words -------------------------------- Toby Tremayne Cold Fusion Developer Code Poet and Zen Master of the Heavy Sleep Virtual Tours +61 416 048 090 ICQ: 13107913 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
