1. #1
    Ext User boriscy's Avatar
    Join Date
    Dec 2007
    Posts
    21
    Vote Rating
    0
    boriscy is on a distinguished road

      0  

    Red face How to reset a Value in (inputType: 'file') field?

    How to reset a Value in (inputType: 'file') field?


    Hello I have a form to make uploads. And I want to be able to erease the value from the file field after I've submited the upload. The code you see here works on FF but it doesn't work with IE, how can I make this work on IE??
    [PHP]
    <script type="text/javascript">
    Ext.namespace('A');
    A.up = function(config)
    {
    var cat = new Ext.data.SimpleStore({
    fields: ['categoria_id', 'nombre'],
    data :config.data
    });

    this.frm = new Ext.form.FormPanel({
    title:'Subir Archivos',
    url:config.url,
    fileUpload:true,
    width:550,
    labelWidth:130,
    timeout:15000,
    id:'forma1',
    items:[{xtype:'field', fieldLabel:'Seleccionar Archivo',id:'archivo',
    name:'archivo', inputType: 'file', allowBlank:false,
    width:350, height:25, minLength:5
    },{
    xtype:'combo', id:'CategoriaId', name:'data[Categoria][nombre]',
    fieldLabel:'Categor

  2. #2
    Ext User Barbanek's Avatar
    Join Date
    May 2008
    Location
    Czech Republic
    Posts
    5
    Vote Rating
    0
    Barbanek is on a distinguished road

      0  

    Default


    Hi,

    We had same problem. Finally we created our xtype which reset this fileupload input
    on form.reset();

    you can see demo on: http://extjs.s4w.net/

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar