possible bug/backward-incompatibility: UI Tabs (1.5b4) requires a <span> for AJAX tabs to work.
Hi,
I was having a hard time trying to find out why some AJAX tabs (which
worked flawlessly with jquery-1.2.3.js and jquery.ui-1.5b) weren't
working with jquery-1.2.4b.js and jquery.ui-1.5b4 (tried both with
source and minified versions).
Finally, I've being helped at #jquery-ui channel by user ThrushAAX who
found the problem.
To reproduce this, open the demo (/jquery.ui-1.5b4/demos/ui.tabs.html)
simple remove the <span>s on the AJAX tabs example and open it in your
browser: those tabs won't work.
The error reported by Firebug on ui.tabs.js is:
$span.html($span.data("label.tabs")) has no properties
$span.html($span.data('label.tabs')).removeData('label.tabs');
The workarounds are:
- add the <span>s to your tabs
- set the spinner to off: $().tabs({'spinner':False})
I consider this a bug that will affect backward-compatibility. Those
upgrading will have to touch their files to avoid this problem.
Thanks.
ThrushAAX suggested me to add the