开发者

Load data under jQueryUI tabs with no AJAX call

I want to load data by on click of the jQuery ui tabs. If I provide the links in tabs href then its automatically calling by AJAX, but i want to get data by normal request. basically my page is search page where there are different searches will perform on each Tabs and also maintain the search sta开发者_StackOverflow中文版tes. If I use AJAX then I cant save the search states .

please help me. i shall very thankful to you.


Have you tried simply injecting the content you want to display straight into the tab's body and not setting anything ajax specific?

Essentially you should add a listener to the tab menu and then injecting the content into the tab's body. Something along the lines of:

$("#tabs ul li a").click( function () {
                                  var id = $(this).attr("href");
                                  $(id).html( fetch-content() );
                         })

That should be it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜