Created
July 12, 2010 09:59
-
-
Save sahid/472317 to your computer and use it in GitHub Desktop.
This file contains 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
<form method='POST' action='http://upload.example.com' enctype='multipart/form-data' id='form'> | |
<input type='file' /> | |
<input type='submit' /> | |
</form> | |
<script> | |
var io = new goog.net.IframeIo; | |
goog.events.listen (io, goog.net.EventType.COMPLETE, | |
function (event) { | |
alert(event.target.getResponseText ()); | |
}); | |
io.sendFromForm (goog.dom.$ ('form')); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment