On Jul 27, 2007, at 3:26 PM, Michael Kaye wrote:

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...


Yes it does, thank you.

The path I was going down worked as well, but was much less elegant.

In my javascript I was checking the request.responsetext (indexOf) for a div that appears in my full layout but not my simple/included layout and then was using request.responsetext.substring() to strip out the full page elements. It works, but detecting the request type at the server and only sending the correct response stream to start with would be better.

--
Bart
_______________________________________________
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