Current location: Hot Scripts Forums » General Web Coding » JavaScript » more firefox javascript issues..please help ..!!!


more firefox javascript issues..please help ..!!!

Reply
  #1 (permalink)  
Old 01-18-06, 08:51 AM
manu0310 manu0310 is offline
Newbie Coder
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
more firefox javascript issues..please help ..!!!

The problem im having is referencing an array . For instance i have 2 radio buttons and I dont know if this is the correct way to reference them ..
the array is called rad .. so the code i have is:
window.form.rad[0].checked = false ;
this works fine with IE...

when i try this:

document.getElementByName("rad")[0].checked = false ...

I get an error in firefox saying that rad has no properties .. im sure im referencing it wrong ...

Any help would be appreciated. thanks alot..
Reply With Quote
  #2 (permalink)  
Old 01-18-06, 08:55 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
document.getElementByName should be document.getElementsByName
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
  #3 (permalink)  
Old 01-18-06, 09:21 AM
manu0310 manu0310 is offline
Newbie Coder
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
thanks a bunch ... got it ...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mixing some HTML into some JavaScript thatonedude JavaScript 2 12-30-05 11:04 AM
Javascript Calendar not displaying in firefox saintdark JavaScript 4 08-12-05 06:02 PM
Issues with Firefox BobEss JavaScript 1 05-03-05 05:33 AM
javascript, displays in firefox right but not IE eGGy JavaScript 1 08-09-04 06:05 AM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 11:00 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.