[Prototype-core] Ajax.Request Interface

2009-12-11 Thread Joran Greef
From: https://prototype.lighthouseapp.com/projects/8886/tickets/961-ajaxrequestsetrequestheaders-sets-content-type-header-as-content-type-and-sets-it-regardless-of-whether-its-provided-to-the-ajaxrequest-interface-and-other-issues The interface of the Ajax.Request object has a few problems: 1.

Re: [Prototype-core] Ajax.Request Interface

2009-12-11 Thread artemy tregubenko
Using proposed interface, how do I do POST? How do I do OPTIONS or some custom method? Why use `set` and not `put`? Why use 'representation' and not 'body'? I would say your proposal isn't much more memorable than existing. On Fri, 11 Dec 2009 16:07:53 +0300, Joran Greef jorangr...@gmail.com

Re: [Prototype-core] Ajax.Request Interface

2009-12-11 Thread Andrew Dupont
Thanks, Joran. We have plans to start from scratch with Ajax in Prototype 2.0; I think our ideas are mostly along the same lines as yours. I also want to fix some of the annoyances of the current API, hopefully for 1.7. Cheers, Andrew On Dec 11, 2009, at 7:07 AM, Joran Greef wrote: