unfortunately not, it's an internal app, and not net facing I'm afraid. Toby
Friday, October 3, 2003, 10:51:30 AM, you wrote: TF> can you post a link to the page? TF> -----Original Message----- TF> From: Toby Tremayne [mailto:[EMAIL PROTECTED] TF> Sent: Friday, 3 October 2003 10:54 AM TF> To: CFAussie Mailing List TF> Subject: [cfaussie] RE: OT: javascript weirdness TF> Hi Taco, TF>> Try debugging it by putting alert('1'); etc. after every check, see if the js actually stops executing somewhere. TF> done this - every part of the function executes successfully - exactly TF> the same behaviour is happening with other forms and functions too TF> (it's all part of a wizard) TF>> Also, not sure what your doing here javascript:document.forms[0].fuseaction='blah' ? TF>> Are you trying to set the target of the form? TF> blah was just an example because I couldn't be bothered looking up the TF> actual fuseaction ;) It's a fusebox thing, changing the fuseaction TF> dynamically determines where the form submits to. TF> cheers, TF> Toby TF>> Taco TF>> -----Original Message----- TF>> From: Toby Tremayne [mailto:[EMAIL PROTECTED] TF>> Sent: Friday, 3 October 2003 10:32 AM TF>> To: CFAussie Mailing List TF>> Subject: [cfaussie] OT: javascript weirdness TF>> Hi All, TF>> here's a weird one - trying to use a link to submit a form. I have TF>> a for tag that looks like this: TF>> <form name="clientInfoForm" ..... onSubmit="return TF>> checkClientInfo();"> TF>> all present and correct, the function works fine with a submit TF>> button in the form. However I have a custom tag producing links TF>> like this: TF>> <a href="javascript:void(0);" TF>> onClick="javascript:document.forms[0].fuseaction='blah';document.forms[0].submit();">Next</a> TF>> Now when I click on the link, it DOES seem to submit the form, as TF>> it triggers the checkClientInfo() function, which when it finds an TF>> error, returns false and halts the submission. But if there are no TF>> errors, it just doesn't submit!!! I've confirmed beyond doubt TF>> that there are no javascript errors, yet I can't get this to work. TF>> If I add a document.formName.submit(); to the above function, it TF>> submits just fine (and in cases where I don't have a checking TF>> function I use "<form .... TF>> onSubmit="javascript:document.formName.submit();"> TF>> Can anyone tell me why this is happening and what I can do to fix TF>> it? I can't believe I need to submit the darn thing twice... TF>> cheers, TF>> Toby TF>> -------------------------------- TF>> Life is Poetry, TF>> write it in your own words TF>> -------------------------------- TF>> Toby Tremayne TF>> Cold Fusion Developer TF>> Code Poet and Zen Master of the Heavy Sleep TF>> Virtual Tours TF>> +61 416 048 090 TF>> ICQ: 13107913 TF>> --- TF>> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] TF>> To unsubscribe send a blank email to [EMAIL PROTECTED] TF>> MX Downunder AsiaPac DevCon - http://mxdu.com/ TF>> --- TF>> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] TF>> To unsubscribe send a blank email to [EMAIL PROTECTED] TF>> MX Downunder AsiaPac DevCon - http://mxdu.com/ TF> -------------------------------- TF> Life is Poetry, TF> write it in your own words TF> -------------------------------- TF> Toby Tremayne TF> Cold Fusion Developer TF> Code Poet and Zen Master of the Heavy Sleep TF> Virtual Tours TF> +61 416 048 090 TF> ICQ: 13107913 TF> --- TF> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] TF> To unsubscribe send a blank email to [EMAIL PROTECTED] TF> MX Downunder AsiaPac DevCon - http://mxdu.com/ TF> --- TF> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] TF> To unsubscribe send a blank email to [EMAIL PROTECTED] TF> 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/
