Ajax, ajax tabs and functions questions.
Hello,
My page have 3 dynamic tabs. In one of those tabs I have a button that
call an ajax with $.ajax(). On "success" of the ajax call I reload the
tab with .tabs("load", index).
Everything works fine, but I want to add a yellow flash to the
background background when the tab contents finish loading. How can I
do that?
I can only set the "flash" effect when the first ajax call returns. I
want that the flash "wait" all tab content to be loaded before it
start...
My code:
$("#activeconnclear").livequery("click", function(){
$.ajax({
url: "ajax/dhcp_clear_active_conn.php",
beforeSend: function(){
$("#ajaxLoader").toggle();
},
success: function(){
$("#abas > ul").tabs("load", 2);
$("#tabContent").css({backgroundColor:
'#ff0'}).animate({backgroundColor: '#fff'}, 1000);
$("#ajaxLoader").toggle();
}
});
});