I am developing a web application and am using the jqTree plugin for a tree menu. I'm using the saveState argument when creating the tree. It works fine in FireFox 12 i.e. it remembers the state of the tree on a refresh (uses localStorage) but in Internet Explorer 11 it is not saving the data to either localStorage or as a cookie (I've added the JQuery cookie as per the instructions from the author of jqTree, and I can read and write cookies fine).
Out of desperation, I saved a list of open nodes into localStorage as a string, and then tried to loop through the list and use the openNode function of jqTree to open the nodes. This did not work either. Can anyone please advise any workaround/fix? Thank you very much. :)
P.S. It is crashing in IE11 with the error message "'JSON' is undefined" on line 1839 of tree.jquery.js.
Update: The above error was fixed by adding js_json2.js to the configuration and changing line 1839 of tree.jquery.js to
state = JSON.stringify(this.getState(),undefined); //added undefined as second argument
However now the nodes that are collapsed show the expand/collapse icon correctly, but the child nodes that should be invisible are still displayed as below :
▼node1ajax
child1 child2
▼node2
child3
►child4
sub2
In this case, sub2 should not be visible but is.