Skip to content

Instantly share code, notes, and snippets.

@saharabear
Created April 24, 2012 04:16
Show Gist options
  • Select an option

  • Save saharabear/2476358 to your computer and use it in GitHub Desktop.

Select an option

Save saharabear/2476358 to your computer and use it in GitHub Desktop.
form = Y.one("form");
form.on("submit",function(e){
e.preventDefault();
var icfg={
method:'POST',
content_type: "multipart/form-data",
form: {
id: "wired-add-attachment",
upload:true
},
on:{
start:function(id,response,args){
alert("1");
},
success:function(id,response,args){
alert("2");
},
},
};
var req = Y.io(addattachmentdo,icfg);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment