I have implemented tree structure where I get the following error :'(

Error: document.getElementById(treeid) has no properties

Iam not able to correct. Without correcting the error the code works fine, but i have to execure under jquery. And jquery will not accept any error codes. Please help to resolve this problem.

thanka in advance,

10 Years
Discussion Span
Last Post by kceleb9

> Error: document.getElementById(treeid) has no properties

It simply means that no such object with the ID as 'treeid' (or if 'treeid' is a variable, then the value 'treeid' holds) exists in the document tree.


You are trying to access an object called treeid - and it is not initialized - or is null.

You could have a problem with the scope of the variable - where treeid was defined in a scope that this part of your code cannot see.

Only way you can get better help on this is if you paste more of your code to be evaluated.

jQuery should have nothing to do with this - and you can have errors in your code and jQuery is not affected in any way. The statement jQuery will not accept any error codes really does not make much sense.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.