On 02/01/2010 06:25 PM, Vladimir Dronnikov wrote: >> The iframe file upload technique is the only one available because you >> can't push files through xhr. So technically that isn't an XHR request. >> So I suppose you want to mark such uploads as being "asynchronous" to >> the page their iframes originate within? >> >> > Yep. And want it be consistent and standard thru all the code. We > could thoroughly choose a POST variable name and make request object > respect it. I vote for "_ajax" (similar to "_method"). > > -- > Vladimir > >
I see what you mean. But isn't the actual header dependent on the JS library used? I suppose most of the "major" ones send the same one (HTTP_X_REQUESTED_WITH). Perhaps the surogate var should be _x_requested_with? Just a thought, because "ajax" is so... well, lame. I, for one, never use AJAX but AJAJ. :))) Curious, though. Why do you need to know when the request came from xhr or "async" upload form? Vlad -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
