开发者

Extjs input file dialogue trigger event on dialogue close

Is there anyway to capture the event when we select a file in open dialogue box and click ok button in extjs. **off topic the field doesn't stretch from its normal width.

        xtype:开发者_C百科 'textfield',
        fieldLabel: 'New (JPG or PNG only)',
        labelSeparator: '',
        name: 'newPic',
        id:'newPic',
        anchor:'100%',
        inputType: 'file',
        allowBlank: false,

When I ckick the browse button the open dialogue box opens. I need to capture the filename when I click the open button on the dialogue box.

Any suggestions will be helpful.

Thank you.


Take a look at this example from ExtJS Examples page. It shows a working example of your scenario.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜