[thelist] IE7 Javascript - FF3 is fine, IE throws error

Symeon Charalabides symeon at systasis.com
Tue Dec 9 12:29:35 CST 2008

Hi Chriss,

Have you tried taking out the HTML comments in the middle of your JS code, i.e. the two lines:

<!-- used for selecting email new/existing

I feel it may have something to do with them.


Symeon Charalabides (cosmopolite trainee)

>  -------Original Message-------
>  From: Chris Dempsey <chris at gettheedgeonline.com>
>  Subject: [thelist] IE7 Javascript - FF3 is fine, IE throws error
>  Sent: 09 Dec '08 18:15
>  Hi All,
>  I have a small javascript that I want to show/hide an area depending on
>  what radio button a user selects:
>  http://www.edgedevelopment.co.uk/tmp/myTickets.asp.htm
>  It works fine in FF3 but IE7 throws an 'object expected' error.  I think
>  it has something to do with the getElementById calls and IE confusing
>  the name and id properties of the elements in question.
>  Can anyone take a look at the page and suggest what I would need to do
>  to make this work in IE as well as FF?  I've spent a while on it and
>  with my limited knowledge of javascript have exhausted the Google line
>  of enquiry.
>  Thanks,
>  Chris
>  ps. Please ignore the dodgy code layout, I've been messing with it
>  quickly while testing...
>  --
>  * * Please support the community that supports you.  * *
>  http://evolt.org/help_support_evolt/
>  For unsubscribe and other options, including the Tip Harvester
>  and archives of thelist go to: http://lists.evolt.org
>  Workers of the Web, evolt !

More information about the thelist mailing list