Like i said, using submit() will override the onSubmit event handler... It wont matter that the function being triggered returns "false". The form will submit regardless.
You need to move the submit() call from the link into the function as part of its condition logic. Oh, and ditch the onsubmit handler on the form tag. The function should be triggered from the link's onclick event handler. ____________________________ James Silva Web Production Gruden Pty Ltd Tel: +61 02 9956 6388 Fax: +61 02 9956 8433 Email: [EMAIL PROTECTED] Web: http://www.gruden.com ____________________________ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Toby Tremayne Sent: Friday, October 03, 2003 12:34 PM To: CFAussie Mailing List Subject: [cfaussie] RE: OT: javascript weirdness Hi James, aye that's what I thought the first time, but when I do this, then even though the checkClientInfo() function executes, finds an error and returns false - the darn thing still submits! cheers, Toby Friday, October 3, 2003, 12:16:55 PM, you wrote: JS> The void(0); is most likely the party pooper... JS> try: JS> <a href="#" JS> onClick="javascript:document.forms[0].fuseaction='blah';document.forms[0].su bmit();">>Next</a> JS> and see what happens. 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> -----Original Message----- JS> From: [EMAIL PROTECTED] JS> [mailto:[EMAIL PROTECTED] Behalf Of Toby JS> Tremayne JS> Sent: Friday, October 03, 2003 12:17 PM JS> To: CFAussie Mailing List JS> Subject: [cfaussie] RE: OT: javascript weirdness JS> Hi James, JS> well that's the issue - it *does* call the function - I've tested JS> this umpteen times, and the function gets called and works JS> perfectly. If I add a second submit() to the function itself then JS> it will submit the form - otherwise it just executes then stops... JS> no errors anywhere. JS> cheers, JS> Toby 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/ --- 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/
