Jquery Sticky Tabs
I have searched through this entire site but i couldn't find what i was looking for.
I am using Jquery UI tabs and i try to keep the page on the selected tabs when the page is refreshed.
This is what i got:
$(document).ready(function() {
var cookieName = 'stickyTab';
$('#tabs').tabs({
selected: ($.cooki开发者_开发百科es.get(cookieName) || 0),
select: function(e, ui){
$.cookies.set(cookieName, ui.index);
}
});
});
It works fine in Safari but it doesnt work in IE, which is the problem. Could anyone help me out?
What's your subdomain like? IE will reject cookies from non-valid ones:
[domain names] must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphen.
If you have something like an underscore in the subdomain (my_test.blah.com
), it won't work on IE.
精彩评论