I’m looking for a way to get the response from an HTTP POST without using a library. I’ve found this example on w3schools.com using jQuery’s $.post method where you pass in a function to handle the response. I’ve tried looking at jQuery’s source to figure out how it’s handling it but I haven’t gotten anywhere with that.
my POST response will be a json object that I will parse and display on the page.
Sorry about that, I wasn’t thinking. You could use the native javascript ajax controls. Look here: http://www.w3schools.com/ajax/ajax_xmlhttprequest_send.asp
There are examples listed below showing you how to submit form data; I’m not sure if there’s an event fired when the status changes or not. You’ll have to dig a little bit in their examples.