Hi,
This is a html page with AJAX.
The code is working perfectly in Internet Explorer but is not working in Firefox.
The result is a simple JSON object. I also tried jQuery but the result was the same.
Does anybody know how to get the code working in FF?
Hi,
The div is not that important. You can display the result in different way like javascript alert().
I think the point is that the request object is null in FF.
That code should fail in any browser that has good security measures set.
JavaScript has a same origin policy. That means you can not call or interact with other domains. I am betting the error message you are getting is access denied.
You are trying to call a URL that is on a different domain with Ajax. That is not going to happen without a proxy. Most web services now support JSONP and some browsers support CORS.