I need to do a cross domain request, and I have a problem with getJSON.
$.getJSON("http://usr:[email protected]/cgi-bin/remote/request.cgi?m=json&r=grp&fn=getvalue&alias=1/3/51&callback=?",
function(result) {
alert('hi');
});
The callback does not fire, i.e. I do not get the alert. If I paste the http:// link in a browser window, I get the desired result. It is a plain number, in this case 2. I could also set the request to xml, in which case the result in the browser window is <value>2</value>. If someone could tell me what's wrong with my getJSON that would be great.
Many thanks and best regards
?in the callback parameter with a meaningful function name when pasting the url in your browser.failmethod and see what the error is