Bart,

Not sure how your page is built but can you not set your own header when making the XMLhttprequest requests using Set HTTP Header.

I use the Yahoo Interface Library and when I do YAHOO.util.Connect. (basically a wrapper for an XMLHttprequest), and it sets the header "x-requested-with" to "xmlhttprequest".

Not sure if any of this helps...

Regards, Michael.


On 27 Jul 2007, at 19:27, Bart Alcorn wrote:

Is there any way to detect when a request is an XMLHttpRequest versus a regular HttpRequest?

There appears to be nothing in Request Info that can be used to differentiate.

The specific problem occurs when a session times out on a "Web 2.0"/ ajax page. Links that use XMLHttpRequest are being properly redirected to 'app.timeout', but the result is placed inside the container originally meant for the XMLHttpRequest result, including double headers, etc.

How does one properly handle app.timeout and other redirections in a Web 2.0 environment where the expected result is a chunk of html but the result is a fully rendered page?

--
Bart

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to