Welcome Guest, Not a member yet? Register   Sign In
ajax redirect to exception/error pages
#4

(This post was last modified: 06-21-2020, 12:55 PM by dave friend.)

You will need to use Javascript to make a redirect.

Code:
error: function(xhr, status, error) {
    if(xhr.status == 400) {
        //redirect to 400 page!
        window.location = "https://example.com/error400";
    }
Reply


Messages In This Thread
RE: ajax redirect to exception/error pages - by dave friend - 06-21-2020, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB