Basic Ajax Request fails on IE 8
Hello,
i have a very simple ajax request, on Chrome and FF, IE 8 it works very well. IE 8 returns "error", "complete"
the content /test.php :
Ajax request:
-
- $(document).ready(function()
- {
-
- $('#test').click(function(){
-
- $.ajax({
- // dataType: "text",
- url: '/test.php',
- // type: "POST",
- error : function(XMLHttpRequest, textStatus, errorThrown) {
- alert("error");
- },
- complete: function(XMLHttpRequest, textStatus){
- alert("complete");
- },
- success: function(data) {
- alert("success");
- }
-
- });
-
-
- });
-
- });
any Ideas?