Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

You're issuing a request to "/resource" using XMLHttpRequest (xhr) where the server returns a 301 or 302 status code, what happens?

The readystate will advance to 4 but the responseText and responseXML will be null. You will need to issue a new request to the destination of xhr.getResponseHeader("Location").
The XHR object will automatically and transparently follow the redirects to the new location for the resource, unless it's on a different domain.
Depends on how the XHR object is configured. If xhr.redirects=false, you will need to manually issue new requests otherwise it will automatically follow 301 and 302 redirects, unless the location is on a different domain.
The readystate will halt at 3 and you must detect the 301 or 302 header and call xhr.continue() for each 301/302 response.
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon