[thelist] help with javascript

Mark Kamian mhkamian at hotmail.com
Mon Nov 1 10:26:04 CST 2004

Thank you Andrew Clover!!

I feel somewhat irresponsible for posting to the thelist on Friday afternoon 
then not getting back and responding to the suggestions that came through 
afterwards.  Thanks to all for helping!!

In response to this comment below, I did in fact have that form named, but 
must've neglected to include the <form> tag in my initial post.

However, when referring to it as "document.forms.form1..." instead of just 
"form1..." things are working now with Netscape and Mozilla!

Have a great week!

>From: Andrew Clover <and-evolt at doxdesk.com>
>Reply-To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
>To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
>Subject: Re: [thelist] help with javascript
>Date: Sun, 31 Oct 2004 00:59:43 +0100
>Mark Kamian <mhkamian at hotmail.com> wrote:
>>I was wondering if anyone could help me figure out why the following JS 
>>works with IE 6.0, but not with Mozilla/Netscape...
>Tricky. You haven't said what the error is, and we can't just run it and 
>see as you've left all the server-side ASP stuff in your post.
>The only problem I can see in a brief look over the code is:
>>for (var i = 0; i < form1.PROP_SUB_T.length; i++)
>>if (form1.PROP_SUB_T[i].checked)
>>P_S_T += form1.PROP_SUB_T[i].value + ",";
>You've tried to read from the variable named 'form1' here, but nowhere in 
>your script have you actually defined 'form1'.
>Now, if you had a <form name="form1"> I could understand it working only in 
>IE - IE dumps a number of named page elements directly into 'window' scope 
>so you can get away with refering to a 'formName' directly instead of the 
>more correct 'document.forms.formName'.
>However, you don't, so it shouldn't work on IE either.
>Is this related to whatever problem you're having? Dunno. maybe.
>Andrew Clover
>mailto:and at doxdesk.com
>* * Please support the community that supports you.  * *
>For unsubscribe and other options, including the Tip Harvester and archives 
>of thelist go to: http://lists.evolt.org Workers of the Web, evolt !

FREE pop-up blocking with the new MSN Toolbar – get it now! 

More information about the thelist mailing list