#289 enhancement
Pablo Bustos

Allow PUT, DELETE and other HTTP methods on ajax requests

Reported by Pablo Bustos | August 18th, 2008 @ 10:58 PM

"request" function of Ajax.Request class, simulate other verbs (e.g. DELETE, PUT, HEAD, etc) over post.

Why restrict to only get and post requests?

To enable prototype use servlets of my project (that requires DELETE and PUT methods), as a patch, I replaced in that function this line:


      this.transport.open(this.method.toUpperCase(), this.url,
        this.options.asynchronous);

by this:


      this.transport.open(this.options.method.toUpperCase(), this.url,
        this.options.asynchronous);

and works perfectly.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

Attachments

Pages