Hi Spike,

   Well the links in question are generated by a tag which is part of
   the wizards system I use, so it's built to be generic.  In wizards
   that aren't step-aware it uses forms[0], otherwise you pass it
   attributes.formName and it uses that.  BTW - does getElementByID
   work in nutscrape / mozilla etc as well as IE?

cheers,
Toby

Friday, October 3, 2003, 12:05:55 PM, you wrote:

S> Just out of curiosity...

S> Is there a reason you are using the document.forms[0] syntax instead of 
S> document.getElementById('foo')?

S> I would have thought the second option would be more robust if you 
S> change the layout of the page.

S> Have you tried the second option?

S> Sjpike

S> Toby Tremayne wrote:
>> done that too!  the same thing happens on forms that don't have an
>> onSubmit handler at all....  <bangs head against growing dent in the
>> desk>
>> 
>> Friday, October 3, 2003, 11:54:21 AM, you wrote:
>> 
>> TF> ........Remove the onSubmit="return checkClientInfo();" from the form and see 
>> what happens then.
>> 
>> TF> If it does submit at least you know where the problem lies.
>> 
>> TF> -----Original Message-----
>> TF> From: Toby Tremayne [mailto:[EMAIL PROTECTED]
>> TF> Sent: Friday, 3 October 2003 11:58 AM
>> TF> To: CFAussie Mailing List
>> TF> Subject: [cfaussie] RE: OT: javascript weirdness
>> 
>> 
>> TF> Hi Steve,
>> 
>> TF> hehe already tried all of that - after so much to and fro'ing I forgot
>> TF> you didn't need the "javascript:" in the onClick handler - but
>> TF> surprisingly it works either way.  However no matter which way I do
>> TF> it, including trying the function you mentioned below, the results are
>> TF> the same as in my first post.  Incidentally, this behaviour is exaclty
>> TF> the same for link where the onClick handler is only one command - like
>> TF> this:
>> 
>> TF> onClick="document.forms[0].submit();"
>> 
>> TF> grrrr!
>> 
>> TF> cheers,
>> TF> 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/
>> 
>> 
>> 
>> 
>> 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/
>> 
>> 





--------------------------------

       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/

Reply via email to