PDA

View Full Version : FileUploadField.js with Ext.extend(Ext.form.FormPanel ...



aviking
17 Nov 2009, 1:57 PM
Hi,
is anybody here who tryed create Ext.extend (xxx = Ext.extend(Ext.form.FormPanel, { ...) with FileUploadField.js (extjs examples).
I have stil an error "unexpected end of XML source" and I dont'n know why and where I use "fileUpload:true" in Ext.extend.


Ext.ns('XFormular');
XFormular.Form = Ext.extend(Ext.form.FormPanel, {
border : false,
labelWidth : 100,
url : 'form.php',
bodyStyle : 'padding: 10px; background: #DFE8F6;',
//fileUpload : true,
constructor : function(config) {
config = config || {};
config.listeners = config.listeners || {};
Ext.applyIf(config.listeners, {
actioncomplete :function() {
if(console && console.log) {
console.log('actioncomplete:', arguments);
}
},
actionfailed:function() {
if(console && console.log) {
console.log('actionfailed:', arguments);
}
}
});
XFormular.Form.superclass.constructor.call(this, config);
},
initComponent : function() {


Thank for some help.