filebrowser.js error Maya Li  2012-01-04 17:07
Status: Closed
 
While looking at the documentation for embedded Web Part https://www.labkey.org/wiki/home/Documentation/page.view?name=wikiInsertExamples, I noticed that the file web part isn't showing up properly. My google debug tool tells me that there is an error at line 3008 with a message that says "undefined is not a function".

    this.fileUploadField = new Ext.form.FileUploadField({ ...
 
 
Ben Bimber responded:  2012-01-04 17:33
Hi Maya,

Thanks for pointing that out. The webpart doesnt seem to load some required JS files, at least when used in a wiki. I made some changes so the example works, but it probably shouldnt require that the user load those files.

In case anyone else looks at it, I added FileUploadField.js and PipelineAction.js and wrapped it in Ext.onReady().
 
Maya Li responded:  2012-01-05 11:04
Thanks, Ben! :)