ajax - Console line is red, but no error details on jQuery post -
i not noob ajax/jquery, has me scratching head:
$('a').click(function () { console.log('click registered'); var data = ""; // have tried , without data. $.ajax({ type: "post", url: "http://localhost/analytics/linkclicked", data: data, success: function () { console.log("made it"); }, error: function (xmlhttprequest, textstatus, errorthrown) { console.log("ok, see error"); console.log('--- ' + errorthrown + ' --- ' + textstatus + ' ---'); } }); }); my console looks this:
> click registered > post http://localhost/analytics/linkclicked (in red) > ok, see error > --- --- 0 --- when open post element (firebug) has no relevant data either. have dumped xmlhttprequest object, gives me no clues.
why getting no error messages?
Comments
Post a Comment