jQuery getJSON response null for Firefox, works for IE

Posted by user186106 on Stack Overflow See other posts from Stack Overflow or by user186106
Published on 2010-03-17T23:48:56Z Indexed on 2010/03/17 23:51 UTC
Read the original article Hit count: 916

Filed under:
|
|
|
|
$.getJSON(service + "/GetJobTags", { tag: "a" }, function(json) { $.each(json, function(i,val) { alert(val.Title); }); });

It calls:

http://127.0.0.1:20087/ClientService.svc/GetJobTags?tag=a

This is probably of note, the service is running on a different port to the client application, which is on:

http://127.0.0.1:32017/index.htm

Firefox says HTTP 200 OK but the response data is null (and it highlights in red in Firebug). In IE it works fine, and the server is returning json.

Is this a permissions problem? Do I need to use JSONP?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JSON