I want to upgrade jQuery and jQuery UI's version in my project
but tabs widget has problem.
active event is not working
so i want fix it and know what is wrong
how does $("tabs").tabs("option", "active", tab_index) move to function $.widget.bridge ?????
and i wonder how widget.birdge works
here is my code
v_Tabs.obj
= $("tabs").tabs({
activate: function (event, ui) {
gw_com_api.hide("lyrAdd");
var page = "page_" + v_Tab.index;
var content =
"<iframe" +
" id='" + page + "'" +
" src='" + v_Tab.content +
"?USR_ID=" + v_Session.USR_ID +
"'" +
" width='100%'" +
" height='550px'" +
" frameborder='yes' scrolling='no' marginheight=0 marginwidth=0" +
">" +
"</iframe>";
$(ui.panel).append(content);
}
});
v_Tabs.obj.tabs("option", "active", tab_index);
$(ui.panel).append(content);,ui.paneldoes not exist. You can use:ui.newTab,ui.oldTab,ui.newPanel,ui.oldPanelinactivate.$("tabs").tabs()is not a valid selector. I would advise$("#tabs").tabs();.