Hi Doug,
> Do I understand this to mean that Prototype is incapable of issuing a
> true HTTP PUT request, that to issue one, I must deal with the raw XHR
> object?
FWIW, that's my read both of the docs and of the code. Specifically,
in the Ajax.Request#request method, this code is not in a conditional
branch:
if (!['get', 'post'].include(this.method)) {
params['_method'] = this.method;
this.method = 'post';
}
You could modify your copy to allow 'put', but I don't know that the
rest of the logic would continue to work.
I don't know the reasoning behind this; I expect there was some. :-)
FWIW,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jun 17, 8:52 pm, "P. Douglas Reeder" <[email protected]> wrote:
> The documentation on Ajax.Request, for the "method" option, says:
>
> method 'post' The HTTP method to use for the request. The
> other
> widespread possibility is 'get'. As a Ruby On Rails special, Prototype
> also reacts to other verbs (such as 'put' and 'delete' by actually
> using 'post' and putting an extra '_method' parameter with the
> originally requested method in there.
>
> Do I understand this to mean that Prototype is incapable of issuing a
> true HTTP PUT request, that to issue one, I must deal with the raw XHR
> object?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---