How do I set the cookie path
to "/"
with the jQuery treeview plugin?
views:
115answers:
2
A:
hmm, I think its may be
$.cookie('key', 'value', { path : "/" } );
Should be easy to go , :)
vernomcrp
2010-08-22 08:53:03
A:
I just reset cookie. It does not need any patches for treeview plugin
$("#tree").treeview({
persist: "cookie",
toggle: function (args) {
// get cookie
cookieId = "MycookieId";
data = $.cookie(cookieId);
// remove cookie
$.cookie(cookieId, null);
// add with path
$.cookie(cookieId, data, { path: "/" });
}
});
musuk
2010-10-22 08:15:28