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

ic-put-to on form element does not work #62

Closed
ziscloud opened this issue Sep 17, 2015 · 2 comments
Closed

ic-put-to on form element does not work #62

ziscloud opened this issue Sep 17, 2015 · 2 comments

Comments

@ziscloud
Copy link

I am try to submit a html form via ic-put-to, but the form is still submitted via POST method, here is my code:

<form class="form-inline" ic-put-to="/example" ic-target="#refresh_target">
input text etc.....
<button type="submit" class="btn btn-info">Submit</button>
</form>

Do I use it wrong?

@1cg
Copy link
Contributor

1cg commented Sep 17, 2015

Hi Tony,

Intercooler will always use a POST when submitting the request, due to cross browser issues with AJAX requests for non-GET or POST requests.

We include two pieces of information to indicate the actual HTTP method:

  • The _method parameter, which is compatible with Rails)
  • The X-HTTP-Method-Override, which is a google standard

Details can be found here:

http://intercoolerjs.org/docs.html#requests

@1cg 1cg closed this as completed Sep 17, 2015
@ziscloud
Copy link
Author

Very clear explanation, thank you very much.

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

No branches or pull requests

2 participants