I need to do a cross-domain request in a chrome extension. I know I can it via message passing but I\'d rather stick to just jQuery idioms (so my javascript can also work as
The syntax is a little off. There's no need for the callback(
bit. This works flawlessly. Tested in the javascript console of Chrome on this StackOverflow page (which includes jQuery):
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?", function(data) {
console.log(data);
});