Hybrid View

  1. #1
    Ext User
    Join Date
    Sep 2007
    Posts
    11
    Vote Rating
    0
    programmer@blore is on a distinguished road

      0  

    Default Reset the input type file field to blank

    Reset the input type file field to blank


    Hi,
    I am trying to submit a file (browse button), after which the field should be blank.As i have many other fields in the form I can't do reset:true.I just require the following field to be blank after form submit. Thanks in advance.
    The file field:

    uploadForm.add(
    hedit_objFile =
    new Ext.form.TextField({
    allowBlank: true,
    id:
    'file_path',

    inputType:
    'file',
    name:
    'upload_file',
    fieldLabel:
    'File',
    width:243,
    height:22,
    blankText:
    'Please choose a file'
    })
    );


  2. #2

  3. #3
    Ext User
    Join Date
    Sep 2007
    Posts
    11
    Vote Rating
    0
    programmer@blore is on a distinguished road

      0  

    Default


    Thanks for your reply.

    Sorry I forgot to mention that I am trying to set the value using
    hedit_objFile.setValue(
    '');
    but it seems that it is not being compiled at all as the value is not being resetted.

  4. #4
    Ext User
    Join Date
    Sep 2007
    Posts
    11
    Vote Rating
    0
    programmer@blore is on a distinguished road

      0  

    Default


    And one more thing is that this code works perfectly in mozilla but in IE it not resetting the file's value in the form.

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

      0  

    Default


    Quote Originally Posted by programmer@blore View Post
    And one more thing is that this code works perfectly in mozilla but in IE it not resetting the file's value in the form.
    I have got the same problem with you.
    Did you already solve this problem?

    In my work, it works perfectly in Chrome 1.0.154.59 and Mozilla Firefox 3.0.1,
    but failed in IE 7(means that setValue("") doesn't work)

    Can any one help me?

  6. #6
    Ext User ibralnet's Avatar
    Join Date
    Aug 2008
    Posts
    100
    Vote Rating
    0
    ibralnet is on a distinguished road

      0  

    Default


    Hi,
    I get the same problem, so do any body found a solution for this ????

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