Last active
October 28, 2015 19:34
-
-
Save segdeha/1f6ef6c0195262c57074 to your computer and use it in GitHub Desktop.
Smallest possible Ajax implementation of POST requests (195 characters)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function p(u,p,c){var x=new XMLHttpRequest;x.open('POST',u);x.setRequestHeader('Content-type','application/x-www-form-urlencoded');x.onreadystatechange=function(){3<x.readyState&&c(x)};x.send(p)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh man, @fearphage cut it down by 8 characters!
https://gist.github.com/fearphage/5c24f9e4a91b73752317