Internet Explorer中的AJAX问题
这适用于FF,safari,chrome和opera,但不适用于IE。
错误代码是403
var datau = "trends.php%3Frastgele%3D33"; $.ajax({ type: "GET", url: "loader.php?kk=1&page="+datau, data: "", cache: false, success: function (html) { $('#content').empty(); $('#content').html(html); }, error:function (xhr, ajaxOptions, thrownError){ alert(xhr.status); alert(thrownError); } });
您现在应该通过url传递GET变量。 建议采用以下方法(不要做urlencode):
$.ajax({ type: "GET", url: "loader.php", data: {"kk": 1, "page": 'trends.php?rastgele=33'}, cache: false, success: function (html) { $('#content').empty(); $('#content').html(html); }, error:function (xhr, ajaxOptions, thrownError){ alert(xhr.status); alert(thrownError); } });