Stop first jquery ui tab from preloading content with ajax -


i user jquery ui create dialog window hidden on page load. user opens dialog clicking button. once open, dialog has several tabs (created jquery ui tabs), each 1 displaying form user might need access to. actual forms loaded using ajaxoptions.

is there way stop jquery preloading first ui tab on page load? instead, want content of first tab loaded when user clicks button open dialog.

    $( "#pref_tabs" ).tabs({     ajaxoptions: {         success: function(xhr, status, index, anchor) {            //function handle successful loading         },         error: function( xhr, status, index, anchor ) {             $( anchor.hash ).html(                 "couldn't load form. we'll try fix possible. ");         },     } }); 

add additional option tabs options make no tabs selected default.

$(sel).tabs({     selected: -1,     ajaxoptions: {... }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -