Hi James, either would work but I've settled on a compromise - I've changed the wizardControls tag to accept an attribute on "onClick", required for use with link type controls (as opposed to image or button submits), so I can keep it generic and just have each form specify the function, then setup the functions to handle the submit as well as the validation.
Thanks for the advice everyone - this will make it work I'm just still annoyed that I can't figure out *why* it doesn't actually submit... cheers, Toby Friday, October 3, 2003, 12:51:00 PM, you wrote: JS> Well, what about using CSS to style a regular INPUT button to look like a JS> link? JS> Or, if that doesnt work, use CSS to DISPLAY:NONE on the submit button, then JS> drop in a link that triggers a click() event on the (now hidden) submit JS> button? JS> Not the ideal solution, but it will save you from having to break any of JS> your "wizard" code... 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:48 PM JS> To: CFAussie Mailing List JS> Subject: [cfaussie] RE: OT: javascript weirdness JS> Hi James, JS> yeah I realised that was what was happening. What I've been trying to JS> find (possibly in vain ;) ) is a way to get it done without having to JS> set it up the way you describe, as it means adding a forced method of JS> submission / validation for these wizards, which is something I was hoping JS> to JS> avoid. If I can't find a solution it will just have to go that way JS> (and at the moment that's what I'm doing) it just annoys my sense of JS> elegance ;) JS> cheers, JS> Toby JS> Friday, October 3, 2003, 12:33:54 PM, you wrote: JS>> Like i said, using submit() will override the onSubmit event handler... JS>> It wont matter that the function being triggered returns "false". The JS> form JS>> will submit regardless. JS>> You need to move the submit() call from the link into the function as JS> part JS>> of its condition logic. JS>> Oh, and ditch the onsubmit handler on the form tag. The function should JS> be JS>> triggered from the link's onclick event handler. 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:34 PM JS>> To: CFAussie Mailing List JS>> Subject: [cfaussie] RE: OT: javascript weirdness JS>> Hi James, JS>> aye that's what I thought the first time, but when I do this, then JS>> even though the checkClientInfo() function executes, finds an JS>> error and returns false - the darn thing still submits! JS>> cheers, JS>> Toby JS>> 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>>> JS>> 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 JS>> [EMAIL PROTECTED] JS>>> MX Downunder AsiaPac DevCon - http://mxdu.com/ JS>> -------------------------------- JS>> Life is Poetry, JS>> write it in your own words JS>> -------------------------------- JS>> Toby Tremayne JS>> Cold Fusion Developer JS>> Code Poet and Zen Master of the Heavy Sleep JS>> Virtual Tours JS>> +61 416 048 090 JS>> ICQ: 13107913 JS>> --- JS>> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] JS>> To unsubscribe send a blank email to JS> [EMAIL PROTECTED] JS>> MX Downunder AsiaPac DevCon - http://mxdu.com/ JS>> --- JS>> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] JS>> To unsubscribe send a blank email to JS> [EMAIL PROTECTED] JS>> MX Downunder AsiaPac DevCon - http://mxdu.com/ JS> -------------------------------- JS> Life is Poetry, JS> write it in your own words JS> -------------------------------- JS> Toby Tremayne JS> Cold Fusion Developer JS> Code Poet and Zen Master of the Heavy Sleep JS> Virtual Tours JS> +61 416 048 090 JS> ICQ: 13107913 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/ 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/
