Stephan123
6 Aug 2009, 12:11 AM
Hello !
I have a simple form.
--------------------
var fenster = new Ext.Window({
title: 'Upload',
width: 500,
autoHeight: 400,
frame: true,
renderTo: document.body,
id: 'fenster',
items: [{
xtype: 'form',
id: 'upload',
fileUpload: true,
frame: true,
items: [{
xtype: 'textfield',
inputType: 'file',
fieldLabel: 'CSV - Datei',
name: 'csvdatei',
id: 'csvdatei'
}],
buttons: [{
text: 'Upload',
handler: function(){
Ext.getCmp('upload').getForm().submit({
url: 'import/import.php',
params: {
aktion: 'ladeCsvDatei'
},
success: function(){
Ext.Msg.alert('Treffer');
}
});
}
},{
text: 'Abbrechen',
handler: function(){
Ext.getCmp('upload').getForm().reset();
}
}]
}]
});
fenster.show();
--------------------------------------
When i start the upload i becam an messag error
by the firebug.
'unexpected end of XML source'
Some idea ?
Greetings Stephan
I have a simple form.
--------------------
var fenster = new Ext.Window({
title: 'Upload',
width: 500,
autoHeight: 400,
frame: true,
renderTo: document.body,
id: 'fenster',
items: [{
xtype: 'form',
id: 'upload',
fileUpload: true,
frame: true,
items: [{
xtype: 'textfield',
inputType: 'file',
fieldLabel: 'CSV - Datei',
name: 'csvdatei',
id: 'csvdatei'
}],
buttons: [{
text: 'Upload',
handler: function(){
Ext.getCmp('upload').getForm().submit({
url: 'import/import.php',
params: {
aktion: 'ladeCsvDatei'
},
success: function(){
Ext.Msg.alert('Treffer');
}
});
}
},{
text: 'Abbrechen',
handler: function(){
Ext.getCmp('upload').getForm().reset();
}
}]
}]
});
fenster.show();
--------------------------------------
When i start the upload i becam an messag error
by the firebug.
'unexpected end of XML source'
Some idea ?
Greetings Stephan