Is pretty basic. I go to item.php with my value. The thing is that item.php redirects user to index.php?qwe=1 with PHP’s Location(); when it’s wrong (which is not the point why, script decides so). I need to treat this redirection as 404. Meaning that I need to execute either error: function [...] or itFailed() function. When script is being redirected to this page.
Any recommendations?
Short story: script requests data, but get rightfully redirected to our error non-404 page if something is wrong, I need to see when it’s redirected, so I that it’s wrong.
you can use the statusCode callbacks to do something when a certain status code is sent, but AJAX will still follow the redirect. So I assume that using the success/error settings can’t be used at all in your situation.