rem: uploader.makeUploadForm("file-upload"); uploadButton = new Ext.Button("upload-button", {text:"Start loading"}); 
add:  var df = handleAfterUpload.createDelegate(this, [], true); var ff = handleFailure.createDelegate(this, [], true); uploadButton = new Ext.get("upload-button"); uploader.on("finish", df); uploader.on("fail", ff); uploader.on("start", function(){uploadButton.disable();}); 
context: Ext.onReady(function () {	uploader.makeUploadForm("file-upload");	uploadButton = new Ext.Button("upload-button", {text:"Start loading"});	uploadButton.on("click", submitForm);});
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/4c5d8266c7c0367f8cd327cf41dfed9d31f21ab1/simpleEELoad.js/buggy/gemma-web/src/main/webapp/scripts/ajax/simpleEELoad.js