Hi,
Can anyone tell me why the following code results in an error in Firefox and success in Internet Explorer?
jQuery.ajax({
type:"GET",
url:"http://nl.ae/iptocapi.php",
datatype:"text/html",
data:{type:'1', ip:'208.48.2.130'},
success:function( data ) {
jQuery("div#data_display").html("success = "+data);
},
error:function( data, error ) {
jQuery("div#data_display").html("error = "+error);
}
});
No matter what I put in here, Firefox is going into the error; will not return success. Any ideas? What the server returns is just plain text, no html, thinking maybe it has something to do with This, but I can't figure it out because there are only So many options for datatype.
Thanks,
Garrett