Last active
August 29, 2015 14:19
-
-
Save jdcauley/4bfd3c83e0e5b3d3495e to your computer and use it in GitHub Desktop.
sample blocks submission
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 upload(){ | |
Blocks.upload(this, function(err, res){ | |
console.log(res); | |
}); | |
} | |
document.getElementById('btn').addEventListener('click', Blocks.stop, false); | |
document.getElementById('btn').addEventListener('click', upload, false); | |
// submits the form that 'btn' is part of via XMLHTTP/ajax |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment