RashmiWagh
29 May 2013, 3:41 AM
HI,
I have tried using the ExtJs xtype:'fileuploadfield' inside a form panel which is placed in a tab panel.
but getting errors in it
Please go through the attachments
Beacause of this I am using an html upload control but which type of listener should be used to get the file selected and read its data.
{
xtype: 'container',
bodyStyle: 'padding:2px;',
html: '<div><label for="file-upload-1"> Upload file: </label><input id="file-upload-1" type="file" name="uploaded" /></div>',
listeners:
{
onchange: function () {
Ext.get('file-upload-1').on('change', function (evt) {
});
}
}
}
I have tried using afterRender, select and other events, but nothing gets fired after a file is selected.
Please help.
I have tried using the ExtJs xtype:'fileuploadfield' inside a form panel which is placed in a tab panel.
but getting errors in it
Please go through the attachments
Beacause of this I am using an html upload control but which type of listener should be used to get the file selected and read its data.
{
xtype: 'container',
bodyStyle: 'padding:2px;',
html: '<div><label for="file-upload-1"> Upload file: </label><input id="file-upload-1" type="file" name="uploaded" /></div>',
listeners:
{
onchange: function () {
Ext.get('file-upload-1').on('change', function (evt) {
});
}
}
}
I have tried using afterRender, select and other events, but nothing gets fired after a file is selected.
Please help.