/ Published in: JavaScript
Simple Ajax POST request using the getHTTPObject function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var request = getHTTPObject(); if(request){ request.onreadystatechange = doSomething; request.open("POST", "file.ext", true); request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); request.send("name=whatever+goes+here&message=hello+world"); }