AJAX redirect example

Posted by: Brian Pontarelli on August 30, 2006

I’ve been having a good discussion with some ACEGI users about my patch for AJAX and ACEGI. There are a number of other solutions out there and some contention about redirects and AJAX. The W3C specification for the XMLHttpRequest states that all browsers must support redirects transparently. Here’s the link:

http://www.w3.org/TR/XMLHttpRequest/

The specific section is:

“If the response is an HTTP redirect (status code 301, 302, 303 or 307), then it MUST be transparently followed (unless it violates security, infinite loop precautions or the scheme isn’t supported). Note that HTTP [RFC2616] places requirements on UAs regarding the preservation of the request method during redirects, and also requires users to be notified of certain kinds of automatic redirections.”

So, I was asked by someone to mock up an example that illustrates redirects working with AJAX and here it is:

http://brian.pontarelli.com/files/ajax-redirect.war

Brian Pontarelli

About Brian Pontarelli

I am a Technology Entrepreneur with a software development background. Currently, I am focused on solving the technology issues that many companies face for login, registration, and user management. My team and I built FusionAuth: A modern customer identity and access management (CIAM) platform that comes with features not seen in the marketplace today. It allows companies to focus on their core product not the plumbing of identity and user management.