Is there anyway to stop the tabs from reloading the content on every access? Everytime I click on a tab, the AJAX request is executed again. Also, when I switch my application tabs,the work I’Ve done on my previous app tab is gone since the tab refreshes. Any ideas?
Share
Pretty sure
cache: trueshould work.Also, see this post which is very similiar to yours.
There’s also a
cookieparameter you can use to store theselected tab.See the documentation: http://jqueryui.com/demos/tabs/
And if none of this works for the oddest of reasons, you can always create your own JavaScript cache object such as a simple
arrayand store the tabidandvaluein there and pull it every time. Further, you could serialize this array toJSONand store it in acookiethat you can check and load on$(document).ready…