JavaScript Post Request
from:

Hey guys, I have a simple static site I'm trying to add a contact form to. I made a simple mailer app thing (http://mailer.robertklein.co) that accepts JSON like this:


{ "name": "Robert", "email": "email@example.com", "message": "blah blah blah"} Code (markup):

I can't figure out how to make this request using plain JS. Can someone please show me how its done and break it down for me? I'm having trouble finding a full example online that uses plain js and json.

Really...

JavaScript Post Request

Poster :
KewL