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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi