mycomponent.addIOForm($('#myform'), function(data) { console.log('This is called on success.'); })