Success / Error, what defines them?
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?
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.
|All times are GMT +1. The time now is 02:40 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.