我是jquery和jquery ui的完整noob,但已成功实现了几个ajax选项卡。我现在试图将它与cookie持久性功能结合起来,以便页面在返回到页面时在最后打开的tabe处打开。代码为Ajax选项卡看起来是这样的:jquery ui选项卡 - 使用ajax选项卡和cookie的持久性
$(function() {
$("#tabs").tabs({
ajaxOptions: {
error: function(xhr, status, index, anchor) {
$(anchor.hash).html("Cannot load this tab at this time.");
}
}
});
});
从文档我得到如下的Cookie持久性被调用:
$(function() {
$("#tabs").tabs({
cookie: {
// store cookie for a day, without, it would be a session cookie
expires: 1
}
});
});
的Al我尝试在两件事情结合起来的标签结束根本不工作。我还让我在周围的用户界面和一些帮助使用的语法头,我一直在看这个时间太长,现在
2010-08-16
Istari