error handling with .post()
Posted
by meo
on Stack Overflow
See other posts from Stack Overflow
or by meo
Published on 2010-04-23T10:13:05Z
Indexed on
2010/04/23
10:23 UTC
Read the original article
Hit count: 212
jQuery
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?
© Stack Overflow or respective owner