473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Code compatible to Mozilla

Hi, my code document.getElementById("QQ" + i).checked = false;

is working in internet explorer , however its giving error in mozilla browser

Error: document.getElementById("QQ" + i) has no properties
Dec 18 '07 #1
2 1317
acoder
16,027 Expert Mod 8TB
Show the rest of the code. Have you set the ID correctly?
Dec 18 '07 #2
Dasty
101 Expert 100+
Show the rest of the code. Have you set the ID correctly?
Exactly what acoder said. Dont forget that "QQ" + i should be the id of element - not its name. I bet your problem is right there (that you are using name instead of id), bacause in IE, getElementById returns elements not only by id, but even elements with given name (which is invalid). That's why it works in IE and not in Mozilla.
Dec 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Matthew | last post by:
Hello - I have this DHTML calendar that displays about 10 pixels off its target in Netscape 7.0 -- from the script layer I have the block of code identified that positions the calender on the...
8
by: Nicolás Lichtmaier | last post by:
Hi, some time ago I've written an article about this issue. It explain some differences in Explorer's and Mozilla's JavaScript/DOM. It has recently changed its URL, This is the new one: ...
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
6
by: Dan McCollick | last post by:
Hi All, I have a very small screen scrape application, that has a small problem. when I run the app and I have fiddler(an http tool to view what is being sent by the requests/responses,...
1
by: Pai | last post by:
Hello there, I need to make my .aspx pages compatible with both these browsers... Could anybody guide me to some tutorials or some tips I just have a <table> tag and a few <td> and <tr> in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.