Forum Moderators: open
i am developing my site, and i have got some JS errors, shown in IE.
For example:
Line:18
Char:3
Code:0
Error:'null' is null or not an object
My question is: HOW TO COUNT THIS LINE AND CHAR?
Should I count only code line (not the empty ones) or I should include empty lines in counting also? Same about chars?...
Thx :)
Both include blank lines.
What I do sometimes if I can't find it, put on a new line some rubbish text, fjdsilfdjfkjfjfkjfkjfkfkdfdsl, and it will complain about that being an error, and give a line number.
The line count is seldom accurate. A better way to go about it is to check it out in FireFox and use the Javascript console, it will point to the specific line and piece of code that's choking.
"null" is not an object can mean you are referencing a document object, function, or other object that doesn't exist. Sometimes it's as simple as a broken piece of HTML code in the document itself.