How should I port this Prototype to JQuery?
- by blu
There is currently this Prototype code that does a PUT:
new Ajax.Request(someUrl, {
    method: 'put',
    parameters: { 'foo': bar },
    onSuccess: function(response) { } .bind(this)
});
I found this post but the solution uses an extra parameter supported by RoR, however I am targeting an ASP.NET backend.
I searched a bit and found that not all browsers support PUT operations so apparently this could fail in certain browsers?  This is already in prod, so a direct port would be fine for now I suppose.
As an aside, what is the deal with the bind(this) in the onSuccess function?