开发者

jQuery UI: Delay Loading AJAX Content Until Tab is Selected

I'd like to know if there's a way to prevent content from loading until a tab is selected when loading the content via AJAX.

I'm not sure if this is already the case and if it is then great! That means no extra work!

Any help or开发者_C百科 answers are very much appreciated :)


Yes there is an option for exactly that: http://jqueryui.com/demos/tabs/#ajax


You may want to event.preventDefault() in the show, select or load event if you are wanting to prevent further loading at some point in the chain of events. The jQuery UI Docs are the best source of information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜