How do I use anyorigin.com to query cross domain?
Currently my code is (Jsfiddle):
$.getJSON('http://anyorigin.com/get?url=http://www.google.com&callback=?', function(data){
alert(data.title); // get title of site
});
data.title is returned as undefined. How do I get the <title> attribute of the site I send to anyorigin.com? What’s the syntax?
Thanks.
Try this way:-
OUTPUT:-