Yes,

i have a few thoughts.

On 7/6/06, John Wang <[EMAIL PROTECTED]> wrote:
> Instead of propagating custom headers like X-Prototype-Version (and
> X-MochiKit-Version), I'd prefer more standardized approach like what is done
> with User-Agent already:

Yes, standards are good, cause we seem to have so many of them.

> 'X-XMLHttpRequest-User-Agent', 'MochiKit/' + MochiKit.Async.VERSION
> It would be great if it was something all the libraries could agree on.
> Eventually this will probably be standardized anyway and in the meanwhile,
> it would make determining the library version easier on the server-side.

I think it begs the question though, why does the server need to
differentiate between different Ajax libraries?  In fact, the only
thing that we should differentiate is whether it's an XMLHttpRequest
or not, and even that might not be appropriate.  If one AJAX library
decides to do something different, or requires specialized output from
the server, and then we allow the server to differentiate between
libaries via request headers,  there's less incentive for a programmer
to keep his AJAX library in line with others.

I think ideally what we want is the data form the server to be AJAX
Library agnostic.  Otherwise you have the same situation, where a
server can differentiate between rendering engines, and in theory give
HTML back designed around that browser.  (Even though that doesn't
happen that often)

Still, It's a nice thought, if you have an environment where several
different web apps are utilizing the same server for the same
information, it would be nice for the server to do statistics, or
anything else.  Probably some sort of rich interaction with the
client.

Your suggestion does make sense, so make that change if you want,
especially if that gets ported into MochiKit.  Better to have it
standardized.  I can already tell someone will try to do something
differently, and we're gonna have to suffer with the idiot decision.
<cough>IE</cough>

Yaakov

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

Reply via email to