Hi all,
I've got a small issue maybe you can help me.
I'am using tabs with ajax loaded content.
In these content I've got forms, and form values are being saved in session every 30 seconds.
I've got a js function autosave() being triggered every 30 seconds, but I also want that function to be triggered when I change tab.
I added the autosave into the select: of my ui Tabs, but I only want the new tab to be loaded only after my autosave is complete.
Could you help me do this?
here is what I've got so far
- // Tabs
$('#tabs').tabs({
cache: false,
show: function(event, ui) {
$('.ui-tabs-panel').html('loading...');
},
select: function(event, ui) {
autoSave();
}
});