- Nov 2, 2008On Nov 2, 2008, at 1:53 AM, Satyam wrote:
> Cookies have to be strings or things that have string representations.Thanks again :) I had also tried that but this is the result:
> The string representation of an object is "[object]"which is not very
> You have to use the JSON utility to convert the tree definition to a
> string and store that string into the cookie. On the way back, you
> the cookie, parse it with the JSON utility and use that as the second
> argument to the TreeView constructor.
All of this is in <head> along with the treeview and cookie .js's:
var tree_struct_x = tree.getTreeDefinition;
var tree_data_string_x =
1st alert is:
2nd one is:
Seems om as per: http://developer.yahoo.com/yui/json/#stringify
What am I doing wrong ?
- << Previous post in topic Next post in topic >>