Response title
This is preview!
// Using YQL and JSONP
$.ajax({
url: "http://query.yahooapis.com/v1/public/yql",
// the name of the callback parameter, as specified by the YQL service
jsonp: "callback",
// tell jQuery we're expecting JSONP
dataType: "jsonp",
// tell YQL what we want and that we want JSON
data: {
q: "select title,abstract,url from search.news where query=\"cat\"",
format: "json"
},
// work with the response
success: function( response ) {
console.log( response ); // server response
}
});
// the name of the callback parameter, as specified by the YQL service
jsonp: "jims",
© 2013 jQuery Foundation
Sponsored by and others.