I am using jQuery UI 1.10 and the jQuery UI Tab widget with AJAX functionalities. The JavaScript code that I am using is stated as-like the following (basic simple):
$('.selector').tabs({
beforeLoad: function (event, ui) {
ui.panel.html('Loading...');
}
});
When a tab "header" is clicked then I would like to display a loading message (a text message) in the tab "body" until the tab content is fully AJAX loaded, after which the loading message should be replaced with the AJAX retrieved data. How can I make that?