Since I upgraded to jQuery UI 1.10 something has changed. Before that upgrade, code related to my jQuery UI Tab was the following:
$('.selector').tabs({
cache: true,
ajaxOptions: {
dataType: 'html'
}
});
As wrote in the jQuery UI 1.10 Upgrade Guide, both cache
and ajaxOptions
has been removed. The guide also states to use the beforeLoad
event, but how can I upgrade the code as well?
A working approach is:
Source: https://github.com/jquery/jqueryui.com/blob/master/page/upgrade-guide/1.9.md#deprecated-ajaxoptions-and-cache-options-added-beforeload-event