error handling with .post()
- by meo
I have to modify a project written by someone else. Because the code is a mess i can't really change this $.post() (or replace it by $.ajax()). What i need to do, is to know if the post returns something else then json and return it.
$.post('balbal.html', json, function(data) { ... my coude ... }, 'json')
I can see the post response i the console.log. Is there a simple way to retrieve it?