Welcome Guest, Not a member yet? Register   Sign In
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! Smile

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

Theme © iAndrew 2016 - Forum software by © MyBB