请访问此页并点击关于我:http://ardakani.com
我使用jquery加载函数从网站上的另一个页面加载数据......
它适用于chrome,但在firefox中它返回错误状态0! 谁能帮我这个 ?! 感谢
这是我的代码:
function loadDataURL( item,url){
//item = '#'+item;
//var item_color = $("#"+item).css("background-color");
// alert(item_color);
var box_str = '<div id="'+item+'" class="box over">'+$("#"+item).html()+'</div>';
$("#overlay").css("z-index",1);
$("#overlay_content").fadeTo( 500,.9);
$("#load_panel").load(url,function( response, status, xhr ) {
if ( status != "error" ) {
var test_str = $("#load_panel").html();
alert(test_str);
}else {alert("errrrrrrrrrooooooooorrrr!"+ xhr.status + " " + xhr.statusText )}
})
var test_str = $("#load_panel").html();
//alert(test_str);
$("#overlay_content").prepend(box_str);
}