Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Xhr Getresponseheader


  • #2
    Regular Coder hdewantara's Avatar
    Join Date
    Aug 2009
    Location
    Jakarta, Indonesia.
    Posts
    328
    Thanks
    9
    Thanked 49 Times in 48 Posts
    Havent tested this, but probably something like the following would do?
    PHP Code:
    http4['onreadystatechange'] = function () {
      if (
    http4['readyState'] == 2) { // headers received
        
    if (http4['status'] == 302) { // a http redirection
          
    alert(http4.getResponseHeader("Location"));
          ...
        }
      }
    }; 
    Ref: http://www.w3.org/TR/XMLHttpRequest/

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no it can't read the header so is there any other way to learn where have i navigated


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •