[EMAIL PROTECTED] a écrit : > I guess that's what frustrates me so much about intentionally sending > the wrong type of HTTP request instead of a DELETE or a PUT. A POST is
That's because most browsers WILL NOT support other HTTP verbs natively. The upcoming W3C spec mandates support for other verbs (most notably PUT and DELETE), but most browsers follow HTML guidelines, which do not support anything else than PUT or DELETE. So Prototype relies on a trick for now, which is implemented already on the server side by RoR, and can easily be supported with very little custom code on any other platform (it's only a question of looking for the _method parameter in the POST request, after all). As soon as there is widespread support for other HTTP verbs in XHR, Prototype will use it. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
