直接上代码
jQuery.get("/AddToShoppingCart.aspx", { productids: ids, temp: Math.random() }, function(data, txtStatus) {
alert(data);
/*if (data != "") {
$("#cart", parent.document.getElementById("leftFrame").contentDocument).html(data);
}*/
});
在IE8,FF下alert都有内容 就是在IE7下死活没反应.jquery版本是1.7有没有谁碰到过的帮助指点一下!
jQuery.get("/AddToShoppingCart.aspx", { productids: ids, temp: Math.random() }, function(data, txtStatus) {
alert(data);
/*if (data != "") {
$("#cart", parent.document.getElementById("leftFrame").contentDocument).html(data);
}*/
});
在IE8,FF下alert都有内容 就是在IE7下死活没反应.jquery版本是1.7有没有谁碰到过的帮助指点一下!
$.get("/AddToShoppingCart.aspx", { productids: ids, temp: Math.random() }, function(data, txtStatus) {
alert(txtStatus);
if (txtStatus) {
alert(data);
$("#cart", parent.document.getElementById("leftFrame").contentDocument).html(data);
}
},'json' );
原来是if(AddProductToCart())
{
DataTable dt = BLL.Carts.GetCartProduct(this.cartId);
Response.write...输出
}把if去掉就行.
原因不知道,可以肯定AddProductToCart()是返回true否则 在IE8,FF下也不可能执行到里内