Skip to content

Instantly share code, notes, and snippets.

@Bluebie
Created April 6, 2009 07:25
Show Gist options
  • Save Bluebie/90657 to your computer and use it in GitHub Desktop.
Save Bluebie/90657 to your computer and use it in GitHub Desktop.
$(document.body).adopt(
(new Element('form', {method: 'post', enctype: 'multipart/form-data', action: '/alter-avatar/' + kind + '/upload'})).adopt(
(new Element('div')).adopt(
new Element('input', {'type': 'file', name: 'upload'}),
new Element('input', {'type': 'submit', value: 'Send Picture'})
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment