There is some straightforward AJAX code that works in Firefox and Chrome but not in IE. I am not doing anything fancy but the code is too long to post here.
Essentially, it is:
<script type="text/javascript">
var baseurl = 'http://mydomain.com/facebook/';
var setUpGame = function(lvl){
var ajaxurl;
ajaxurl = baseurl+'ajax.php?f=gg&l='+lvl;
$.getJSON(ajaxurl,function(data){
//do stuff with data here
});
};
$(document).ready(function(){
setUpGame(3);
});
</script>
The problem is that IE has a problem with $.getJSON. The call stack shows that it fails in the bowels of jQuery (Line 123, column 183) where the jQuery code reads "return new A.XMLHttpRequest"
The error message is "Error: Object doesn't support this property or method". I have verified that the ajaxurl variable has the right value and that URL returns the correct JSON.
Could this be happening because all this is running inside an iFrame?