ajax redirect to exception/error pages |
Hi all,
When I use ajax and it returns an error, This is working great and as expected, but how do i let CodeIgniter deal with the returned error? I looked in the manual and googled, but not sure what it is I am looking for! error: function(xhr, status, error) { if(xhr.status == 400) { //redirect to 400 page! } How Do i pass this on so CodeIgniter shows its exception page(in dev)? (or any custom page in prod 400,500 etc) |
Messages In This Thread |
ajax redirect to exception/error pages - by kristianlake - 06-20-2020, 02:44 AM
RE: ajax redirect to exception/error pages - by InsiteFX - 06-20-2020, 03:02 AM
RE: ajax redirect to exception/error pages - by kristianlake - 06-20-2020, 07:46 AM
RE: ajax redirect to exception/error pages - by dave friend - 06-21-2020, 12:53 PM
RE: ajax redirect to exception/error pages - by kristianlake - 06-22-2020, 10:01 AM
RE: ajax redirect to exception/error pages - by dave friend - 06-22-2020, 11:36 AM
|