Why is order important in moving from tab to tab programmatically (and new in 1.8.10
Posted
by
Bruce
on Stack Overflow
See other posts from Stack Overflow
or by Bruce
Published on 2011-03-13T08:04:25Z
Indexed on
2011/03/13
8:10 UTC
Read the original article
Hit count: 173
jQuery
|jquery-ui-tabs
Hi folks,
Up until I updated to jquery-ui-1.8.10 (already using jQuery 1.5), the following code has worked as expected:
case 'baseeditor':
$('#tab1').html(responseText).fadeIn(500, function() {
... load the contents of the tab and stuff...
});
$("#prolearn").tabs("select",1);
break;
case ...
The tab is fueled and then focus is moved from tab0 (from where the ajax call is initiated) to tab1.
Now, that code won't work, but this version does:
case 'baseeditor':
$("#prolearn").tabs("select",1);
$('#tab1').html(responseText).fadeIn(500, function() {
... load the contents of the tab and stuff...
});
break;
case ...
Can someone explain the difference - have I just been lucky getting away with my original version?
Thanks/Bruce
© Stack Overflow or respective owner