Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Add http post request to example #28

Closed
brasilikum opened this issue May 25, 2016 · 2 comments
Closed

Add http post request to example #28

brasilikum opened this issue May 25, 2016 · 2 comments

Comments

@brasilikum
Copy link

I am trying to get going with elm and I would really appreciate it if you could add an example about how to send this to a certain endpoint via http post, because in my static site the contact form is the only dynamic part I want and I would like to do it all in elm.
This might be slightly off topic, but from my point of view would make it easier for users new to elm to replace their jQuery clutter
Thanks for considering

@brasilikum
Copy link
Author

Ok I found out it does, but only to the same url it is served from, right?
Form.Submit does not accept a path, right?

@etaque
Copy link
Owner

etaque commented May 25, 2016

Hello,
HTTP is out of the scope of this package because form submitting doesn't mean sending to server here, just retrieving a valid record.
Also if you're beginning with Elm and just need a contact form you might better do that in pure Elm. I suggest to join the Elm slack channel for help:
http://elmlang.herokuapp.com/

Cheers

@etaque etaque closed this as completed May 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants