i’m using post to send data to the server – the problem is if there’s a php error in the script, the ajax handler won’t report back that an error occured with that request.
any ideas how to do it?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make the PHP return an error to let the AJAX know something went wrong, or use a timeout or something on the AJAX side of things.
See also: http://php.net/manual/en/function.set-error-handler.php
jQuery has some features to do this too, iirc.
Also: accept some more questions as answered.