Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajax put method #22

Closed
lp76 opened this issue Nov 29, 2012 · 9 comments
Closed

Ajax put method #22

lp76 opened this issue Nov 29, 2012 · 9 comments
Labels

Comments

@lp76
Copy link

lp76 commented Nov 29, 2012

Hi, is it possible to use put method instead of post for ajax call? I'd like to integrate x-editable in a rails project.
Thank you
Luca

@atrophic
Copy link

There's a commit on a fork of bootstrap-editable that adds PUT support and makes the form data rails friendly. The necessary code changes are very straight forward.

@lp76
Copy link
Author

lp76 commented Nov 29, 2012

Thank you atrohpic

@vitalets
Copy link
Owner

thanks to atrohpic for answer.
Also in coming version I've added ajaxOptions to modify any parameters of ajax request.

ajaxOptions: {
    type: 'PUT',
    dataType: 'xml'
}

@vitalets
Copy link
Owner

it's ready in 1.1.1

@fionnbharra
Copy link

Is there a version of 1.1.1 I can download without having to build? (sry if I'm just being dim, but I can't see one)

@lp76
Copy link
Author

lp76 commented Nov 30, 2012

You can download the new version here http://vitalets.github.com/x-editable/

@fionnbharra
Copy link

Wonderful, thanks. I downloaded 1.1.0 about two hours ago, tried to change it to use 'put' rather than 'post' and you updated the version while I was doing so!

@1st8
Copy link

1st8 commented Dec 3, 2012

Great update, just in time for my project :) 👍

Just a small addition, it should be type instead of method:

ajaxOptions: {
  type: 'PUT'
}

@vitalets
Copy link
Owner

vitalets commented Dec 3, 2012

yes, sure! thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants