PDA

View Full Version : [3.0.rc]Problems mit UploadPanel



jahman
7 Jul 2009, 11:40 PM
Hello Folks,

I am trying to use the uploadpanel extension with ext. js 3.0 and it ist not working at all. I get the following error messages. Ich have tried everything I can the past 2 days without coming any further. I need your help guys.



var uploadpanel = new Ext.FormPanel({
id: 'uploadpanel',
renderTo: 'addAnfrage_div_uploadForms',
labelWidth: 120,
fileUpload: true,
frame:false,
border: false,
header: false,
hideBorders: true,
bodyStyle:' padding:5px 5px 5px 5px;',

items: [
.......

new Ext.ux.UploadPanel({
buttonsAt:'tbar',
width:300,
height:400,
id:'ftp',
renderTo:'content',
url:'php/filetree.php',
topMenu:true,
autoScroll:true,
path:'root'
,maxFileSize:1048576
,maxLength:28
,singleUpload:true,
enableProgress:true
}),

......

]
});



Error Message



types[config.xtype || defaultType] is not a constructor
chrome://firebug/content/blank.gif return config.render ? confi...[config.xtype || defaultType](config);\r\n

Animal
8 Jul 2009, 12:50 AM
Well that is totally debuggable if you are willing to be a software developer!

What is the xtype that it is trying to use that is not registered? Set a break there, find out, and fix it!

jahman
8 Jul 2009, 3:01 AM
I solved that Problem. It was my fault I did not add the BrowseBotton js. But afterward I encounter another Problem. This problem is described hier.http://extjs.com/forum/showthread.php?p=348148&highlight=buttonct#post348148