I’m a complete JavaScript noob. I am using this right now:
$(function() {
$("#tabs").tabs({
ajaxOptions: {
error: function(xhr, status, index, anchor) {
$(anchor.hash).html(
"Couldn't load this tab. We'll try to fix this as soon as possible.");
}
}
});
});
Can someone tell me how to also add this option to it:
spinner: 'Loading...'
You have to wrap every single tab with
<span>and use the script like this:
to test it you should make an ajax call with some delay. I’ve called an MVC action putting the thread in sleep for 2 seconds.