AJAX issue in Internet Explorer

This works well in FF, Safari, Chrome and Opera, but not in IE.

Error Code: 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); } }); 
+2
source share
1 answer

You should now pass the GET variables to the URL. The following is recommended (do not use 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); } }); 
0
source

Source: https://habr.com/ru/post/1392099/


All Articles