-
-
Save fearphage/5c24f9e4a91b73752317 to your computer and use it in GitHub Desktop.
Smallest possible Ajax implementation of POST requests (187 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){with(new XMLHttpRequest)open('POST',u),setRequestHeader('Content-type','application/x-www-form-urlencoded'),onreadystatechange=function(){3<readyState&&c(this)},send(p)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brilliant!