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

Popular posts from this blog

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -

java - How to specify maven bin in eclipse maven plugin? -