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 enter image description here

any help? thanks

the response http://prospectbank.co.uk/leads/capt?_=1340513330866? wrong formatted json.

{"status":true} 

it should be

{status:true} 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -