Hybrid View

  1. #1
    Ext User
    Join Date
    May 2009
    Posts
    59
    Vote Rating
    0
    catapult is on a distinguished road

      0  

    Question inputType: file - reset field in IE

    inputType: file - reset field in IE


    Hi all,

    I have a form with a textfield set with "inputType: file". Everything works fine when I submit the form, the file uploads lovelly. When I get the response back I want to reset the field to allow uploading another file. I don't seem to be able to do this in IE. Other browsers seem to work correctly.

    I have tried:

    getForm(); form.reset();

    Ext.getCmp('uploadfile').reset();

    Ext.getCmp('uploadfile').setValue('');

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    I have an file upload class. The way I implement reset is to remove the <input> element and insert a new one named the same in its place.

  3. #3
    Ext User
    Join Date
    May 2009
    Posts
    59
    Vote Rating
    0
    catapult is on a distinguished road

      0  

    Default


    Thanks Animal. I'll play around with that.

Similar Threads

  1. Reset the input type file field to blank
    By programmer@blore in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 25 May 2012, 12:43 AM
  2. How to reset the textfield component with inputType: 'file'?
    By ScytheV in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 3 Feb 2010, 3:46 AM
  3. inputType:file
    By WutongDeath in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 Jul 2008, 9:44 PM
  4. How to reset a Value in (inputType: 'file') field?
    By boriscy in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 9 Jul 2008, 6:00 AM

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..."