Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Marco C. on Nov 12, 2008 08:17
open dhtmlx forum
DHTMLX Tree - saveSelectedItem() params

Hi, in the function saveSelectedItem() the first parameter is the name.
I use this when i have more than one tree and it works very good.

What is the function of the second parameter cookie_param?

Can i use this param to set the cookie with an item that is not selected?

If not how can i do?

Thanks

Marco C.

Answer posted by Support on Nov 13, 2008 04:48
Second parameter can be used to specify cookie details ( most common use-case - cookie life time ) , value of second parameter will be added to cookie string. 
tree.saveSelectedItem("some","expires=Fri, 31-Dec-2010 23:59:59 GMT");