views:

52

answers:

1

even with a piece of code like this

$.get('getforums.php', function(data) {
    alert(data);
});

works well in chrome, firefox, safari, opera but not this baby. tried everything, cleared cache, recreate this file in different editor, even make this file just echoed a 's', but no, it just don't like this file, works perfect on other file

thanks for the help!

A: 

Most likely an encoding issue. IE is pretty strict about what encodings it will accept. Try switch the $.get out for a $.ajax call and log the error message.

$.ajax({
  url: 'getforums.php',
  dataType: 'text',
  data: {},
  success: function(data) {
    console.log(data);
  },
  error: function(XMLHttpRequest, textStatus, errorThrown) {
    console.log(textStatus, errorThrown);
  }
});
zaius
you're fixing IE, don't use `console.log()`
Reigel
Hah true. Just include firebug lite before you start then :)
zaius