When the caching remains disabled (i.e. cache: false
), how can I prevent the tab from loading the remote content again? Essentially, I would like to select
a tab but not load
it.
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- Using :remote => true with hover event
- Is there a way to play audio on a mobile browser w
- net::ERR_EMPTY_RESPONSE when post with ajax
- Easiest way to get json and parse it using JQuery
相关文章
- spring boot用ajax发送请求后,请求路径多了controller的路径
- 针对复杂结构的前端页面,如何更好地与后台交互实现动态网页?
- ajax上传图片,偶尔会出现后台保存的图片有错误或者已损坏,请问可能是什么原因造成的?
- 前端 我想知道怎样通过发ajax请求向服务器拿到数据然后分页显示 最好是点击一页就发一次请求
- 接口返回的数据格式如下,请问可以取到level值为2的name数组呢
- 如何通过页面输入账号密码提交给后端
- How to get jQuery.ajax response status?
- jQuery UI Sortable: Scroll entire page as well as
It turns out that you can control the caching of each tab by setting the 'cache.tabs' data in each tab's anchor element.
I posted the answer in another post: JQuery UI Tabs caching, but I'll just repost the code here.
Then after the tab content has been loaded for the first time, you can enable the caching for that tab. I simply put it in the
$(document).ready
for the page to be cached:...follow a tab's URL instead of loading its content via ajax
Note that opening a tab in a new window is unexpected, e.g. inconsistent behaviour exposing a usablity problem (http://www.useit.com/alertbox/tabs.html).
By: http://jqueryui.com/demos/tabs/#...immediately_select_a_just_added_tab