jaanus
15 Nov 2007, 1:33 PM
with yui-adapter on Linux x64 Swiftfox 2.0.0.9 (Linux only firefox flavour)
var file_fld=new Ext.form.TextField({
fieldLabel:'some_label',
name:'some_name',
inputType:'file',
allowBlank:false});
file_fld.on('change',function(){alert(1);});
some_ext_form_obj.add(file_fld);
...does not work, while...
var file_fld=new Ext.form.TextField({
fieldLabel:'some_label',
name:'some_name',
/*inputType:'file',*/
allowBlank:false});
file_fld.on('change',function(){alert(1);});
some_ext_form_obj.add(file_fld);
...does its thing.
An undocumented feature perhaps or am I simply missing something here?
I'm pretty sure, that when defining a callback on an onchange event directly on a DOM node (file input), everything would work as intended, however I'd like to keep my code clean by using the Ext API.
Thank you.
var file_fld=new Ext.form.TextField({
fieldLabel:'some_label',
name:'some_name',
inputType:'file',
allowBlank:false});
file_fld.on('change',function(){alert(1);});
some_ext_form_obj.add(file_fld);
...does not work, while...
var file_fld=new Ext.form.TextField({
fieldLabel:'some_label',
name:'some_name',
/*inputType:'file',*/
allowBlank:false});
file_fld.on('change',function(){alert(1);});
some_ext_form_obj.add(file_fld);
...does its thing.
An undocumented feature perhaps or am I simply missing something here?
I'm pretty sure, that when defining a callback on an onchange event directly on a DOM node (file input), everything would work as intended, however I'd like to keep my code clean by using the Ext API.
Thank you.