........Remove the onSubmit="return checkClientInfo();" from the form and see what happens then.
If it does submit at least you know where the problem lies. -----Original Message----- From: Toby Tremayne [mailto:[EMAIL PROTECTED] Sent: Friday, 3 October 2003 11:58 AM To: CFAussie Mailing List Subject: [cfaussie] RE: OT: javascript weirdness Hi Steve, hehe already tried all of that - after so much to and fro'ing I forgot you didn't need the "javascript:" in the onClick handler - but surprisingly it works either way. However no matter which way I do it, including trying the function you mentioned below, the results are the same as in my first post. Incidentally, this behaviour is exaclty the same for link where the onClick handler is only one command - like this: onClick="document.forms[0].submit();" grrrr! cheers, Toby SO> You dont use javascript: with onclick, for what ever it is. Same goes with SO> onMouseout, onMouseover and all the "on" methids of html elements SO> your form is correct SO> <form name="clientInfoForm" ..... onSubmit="return checkClientInfo();"> SO> but your buttons wont work. You A tage need to look like this SO> <a href="javascript:;" SO> onClick="document.forms[0].fuseaction='blah';document.forms[0].submit();">Ne SO> xt</a> SO> cause you cant call js calls straight form the href, you could put it all in SO> a function SO> <script> SO> function setFuseAction(fuseAction) SO> { SO> document.forms[0].fuseaction=fuseAction; SO> document.forms[0].submit(); SO> } SO> </script> SO> <a href="javascript:setFuseAction('bla');" onclick="return false;">Next</a> SO> Regards SO> Steve Onnis SO> -----Original Message----- SO> From: [EMAIL PROTECTED] SO> [mailto:[EMAIL PROTECTED] Behalf Of Toby SO> Tremayne SO> Sent: Friday, October 03, 2003 11:20 AM SO> To: CFAussie Mailing List SO> Subject: [cfaussie] RE: OT: javascript weirdness SO> yeah the form has an action, name and method (I just used ...) to SO> avoid putting the whole lot in there ) - so it looks like this: SO> <form name="clientInfoForm" action="blah.cfm" method="post" SO> onSubmit="return checkClientInfo();"> SO> Friday, October 3, 2003, 11:01:57 AM, you wrote: WS>> Does your <form> have an action? TF>>>> <form name="clientInfoForm" ..... onSubmit="return TF>>>> checkClientInfo();"> WS>> IMPORTANT NOTICE: WS>> This e-mail and any attachment to it is intended only to be read or used SO> by WS>> the named addressee. It is confidential and may contain legally SO> privileged WS>> information. No confidentiality or privilege is waived or lost by any WS>> mistaken transmission to you. If you receive this e-mail in error, SO> please WS>> immediately delete it from your system and notify the sender. You must SO> not WS>> disclose, copy or use any part of this e-mail if you are not the SO> intended WS>> recipient. The RTA is not responsible for any unauthorised alterations SO> to WS>> this e-mail or attachment to it. WS>> --- WS>> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] WS>> To unsubscribe send a blank email to SO> [EMAIL PROTECTED] WS>> MX Downunder AsiaPac DevCon - http://mxdu.com/ SO> -------------------------------- SO> Life is Poetry, SO> write it in your own words SO> -------------------------------- SO> Toby Tremayne SO> Cold Fusion Developer SO> Code Poet and Zen Master of the Heavy Sleep SO> Virtual Tours SO> +61 416 048 090 SO> ICQ: 13107913 SO> --- SO> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] SO> To unsubscribe send a blank email to [EMAIL PROTECTED] SO> MX Downunder AsiaPac DevCon - http://mxdu.com/ SO> --- SO> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] SO> To unsubscribe send a blank email to [EMAIL PROTECTED] SO> 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/
