I'm a little bit confused (new to Ajax).
What is it that defines whether the file execution is a success or a fail?
If I use the 'errorThrown' will the PHP 'die' function call it? if not, what can I execute in PHP to make sure Error gets called when I want it to?
Regards
Matthew
Last edited by GreenFanta; 08-31-2012 at 11:53 PM..
As far as I understand, “success” and “error” are based on the HTTP status codes the server returns. So you’d need to make PHP send an error status code in order to throw an error.
I don't think you get a ajax type error by using bad php. You will get php type error. If you call a file that don't exist you'll get the ajax type thing.