Hi guys,
I` having problem with my ajax tabs.. sometime it works and sometimes it will give me an error.. of
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.2)
Timestamp: Sun, 1 Aug 2010 23:58:16 UTC
Message: アクセスが拒否されました。
and the ajax is not loaded.. or show
Here is my code..
<link rel="stylesheet" type="text/css" href="http://domain.com/css/custom-theme/jquery-ui-1.8.2.custom.css" />
<script type="text/javascript">
$(function(){
//getter
var spinner = $( ".selector" ).tabs( "option", "spinner" );
//setter
$( ".selector" ).tabs( "option", "spinner", 'Retrieving data...' );
// Accordion
$("#accordion").accordion({ header: "h3",
autoHeight: false,
navigation: true
});
// Tabs
$("#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. If this wouldn't be a demo.");
}
}
});
//hover states on the static widgets
$('#dialog_link, ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);
});
</script>