I am trying to retrieve the source code of an IMDB page using jQuery and jsnop, using the following code:
$(document).ready(function (){
var url = "http://www.imdb.com";
var success = function(data){
// work
};
$.ajax({
type: 'GET',
url: url,
data:{todo:"jsonp"},
dataType: "jsonp",
crossDomain: true,
cache:false,
success: success,
error:function(jqXHR, textStatus, errorThrown){
console.log(errorThrown);
console.log(textStatus);
}
});
});
I am getting following errors:
object error
parse error