On 5/15/07, Spiderr <[EMAIL PROTECTED]> wrote:
>
> Is there a way to consistently identify a MochiKit XMLHttpRequest? I
> would prefer not either fork mochi, nor concatenate a GET var. For
> projects like a large CMS with dozens of developers working in
> desperate feature sets, "ajax_post=1" quickly becomes "ajaxpost",
> "ajaxPost", "is_ajax" and more.
>
> Prototype's handling of this is pretty clean and simple by setting a
> "X-Requested-With: XMLHttpRequest\n" header. Is there some MochiKit
> mojo that makes this easy and invisible?

The only header we currently add is "Accept: application/json" for
loadJSONDoc, but only in MochiKit 1.4. Any other headers you want can
be added yourself by calling into doXHR.

I'd be ok with something like X-Requested-With, but only if there's
some kind of de facto standard. Find me another popular toolkit or two
that does it, and I'll add it to MochiKit.

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to