开发者

is there a better way to show loading message with jquery ui tabs?

using jquery ui tabs, when you load a tab in ajax, the tab changes message to say "Loading . ." i think this is a little subtle.

Is there anyway you can do som开发者_JS百科ething in this content area of the tab similar to what block ui does when you are loading a call in ajax.


You would display a loading message within the content area like so (untested):

$('#selector').bind('tabsselect', function(event, ui) {

    // show default $.blockUI loading message
    $('ui.panel').blockUI();
}).bind('tabsload', function(event, ui) {

    // remove loading message
    $('ui.panel').unblockUI();
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜