ajayvegesna02
asked on
How to set the time in JQuery's cookie persistence Tab
I am using the cookie persistence Tab in my JSP appliation...
http://jqueryui.com/demos/tabs/#cookie....
But how to set the Cookie Time in Mints... By Default it will store 1 day in browser...
Thanks,
Ajay
http://jqueryui.com/demos/tabs/#cookie....
But how to set the Cookie Time in Mints... By Default it will store 1 day in browser...
Thanks,
Ajay
ASKER
U have mentioned expires : 30
will 30 stands for Minutes? if so how can we set in seconds
Thanks,
Aj
will 30 stands for Minutes? if so how can we set in seconds
Thanks,
Aj
ASKER
I want to maintain the selected tab only for 1 or 2 mints, after that the user loads the page again i need to show the first tab;
Thanks,
Aj
Thanks,
Aj
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
IF i put this code.. i lose the tabs functionality...
Any idea??
Thanks,
Aj
IF i put this code.. i lose the tabs functionality...
Any idea??
Thanks,
Aj
Initialize a tabs with the cookie option specified.
$( ".selector" ).tabs({ cookie: { expires: 30 } });
Get or set the cookie option, after init.
//getter
var cookie = $( ".selector" ).tabs( "option", "cookie" );
//setter
$( ".selector" ).tabs( "option", "cookie", { expires: 30 } );