The best way would be to use the $.ajax call directly (both the post and the
get function call $.ajax internally).
$.ajax({
type:'GET',
url:'somepath.php',
dataType:'json',
success:do_something,
error:do_something_else
});
function do_something(results) {
///
}
function do_something_else() {
///
}
JK
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Adwin Wijaya
Sent: Sunday, November 23, 2008 8:58 PM
To: jQuery (English)
Subject: [jQuery] how to capture error 500/404 ?
Hi,
how to capture error that produced by server (err 505 or 404) inside
$.post() and $.get() ?
thanks !!!