Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-05-2011, 08:47 PM   PM User | #1
ballot
New to the CF scene

 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ballot is an unknown quantity at this point
Xhr Getresponseheader

http://stackoverflow.com/questions/8...-a-xhr-request

may anyone solve this
ballot is offline   Reply With Quote
Old 11-06-2011, 06:03 PM   PM User | #2
hdewantara
Regular Coder

 
hdewantara's Avatar
 
Join Date: Aug 2009
Location: Jakarta, Indonesia.
Posts: 287
Thanks: 4
Thanked 39 Times in 39 Posts
hdewantara is an unknown quantity at this point
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/
hdewantara is offline   Reply With Quote
Old 01-30-2012, 06:11 PM   PM User | #3
ballot
New to the CF scene

 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ballot is an unknown quantity at this point
no it can't read the header so is there any other way to learn where have i navigated
ballot is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:04 PM.


Advertisement
Log in to turn off these ads.