Using jQuery, I tried to load a definition file from Dictionary.com's API:
var tmpWord = "hello";
jQuery.ajax({
type: "GET",
url: "http://api-pub.dictionary.com/v001?vid=<MYKEY>&q="+tmpWord+"&site=dictionary",
dataType: ($.browser.msie) ? "text/xml" : "xml",
success: function(xml) {
console.log($(this).text());
}
});
(NOTE: I've replaced my API key with the thing on purpose so you lot don't steal it :P)
Anyway, for some reason, this will return a result in IE but not Firefox :'(
and this is the same even if I force dataType: 'xml'
Any ideas gurus?
Cheers.
Neuro