javascript - How to get rid from ?callback=myCallback&_=1340513330866? -
i'm trying capture data html page on website. need capture data , save site. that's why used cross domain ajax this
var mycallback = function(data) { console.log(data); }; var formdata = $('.data-capture-form').serialize(); $.ajax({ url: 'http://prospectbank.co.uk/leads/capt', type: 'get', data: formdata, datatype: 'jsonp', crossdomain: true, jsonp: 'callback', jsonpcallback: 'mycallback' }).done(function(res) { console.log(res); }).fail(function(jqxhr, textstatus, errorthrown) { console.log(jqxhr, textstatus, errorthrown); });
then error
any help? thanks
the response http://prospectbank.co.uk/leads/capt?_=1340513330866? wrong formatted json.
{"status":true}
it should be
{status:true}
Comments
Post a Comment