Not able to load tree using JSON

I am unable to display the tree sing JSON.

I have a PERL program that outputs the JSON string. If I copy that string and place it in tree.loadJSONObject(), it works just fine - it correctly displays the tree (around 600 nodes).

However, when I try to use the JSON object, it just doesn’t display anything.

Please note that, in theAJAX callback function, the JSON string is returned correctly and I have an ‘alert’ to display the retruned string just to ensure that thestring is actually coming back.

Elsewhere in theforum, I read that the returned JSON string should be converted into a JSON object, I did that too; still no luck.

My CSS and Javascript libraries:


My tree initialization & loading in . Note that the tree.loadJSONObject() is commented out so that I can test by passing teh string directly.


My AJAX code:


Thank you for youe help,
Ram

I have figured out the problem. The function on the load is acyually the one that is called when the load is completed, My bad.