Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    4
    Vote Rating
    0
    vortex-5 is on a distinguished road

      0  

    Default FileUploadField IE compatability

    FileUploadField IE compatability


    In one of my current projects the GXT widget FileUploadField requires 2 clicks from IE to have the browse button popup.

    Has anyone else experienced this issue with this widget?

    This only happens in IE all other browsers behave as expected.

  2. #2
    Ext User
    Join Date
    Mar 2010
    Posts
    6
    Vote Rating
    0
    carl.cronje@gmail.com is on a distinguished road

      0  

    Default


    Hi

    I have the same problem, any idea how to fix it yet..

    I see it has been a month since you asked the question...

    Thanks
    Carl

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Can you please post a fully working testcase implementing EntryPoint that shows this? This works fine here: http://www.sencha.com/examples/#fileupload

  4. #4
    Ext User
    Join Date
    Mar 2010
    Posts
    6
    Vote Rating
    0
    carl.cronje@gmail.com is on a distinguished road

      0  

    Default


    Hi Sven

    It seems that when I put the FileUploadField in a Dialog that the problem occurs,
    and only on IE.


    Here is the code:
    Code:
    package com.IEFileUploadFieldBug.client;
    
    import com.extjs.gxt.ui.client.Style;
    import com.extjs.gxt.ui.client.event.ButtonEvent;
    import com.extjs.gxt.ui.client.event.SelectionListener;
    import com.extjs.gxt.ui.client.widget.Dialog;
    import com.extjs.gxt.ui.client.widget.button.Button;
    import com.extjs.gxt.ui.client.widget.form.FileUploadField;
    import com.extjs.gxt.ui.client.widget.form.FormPanel;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    
    
    public class IEFileUploadFieldBug implements EntryPoint {
    
        private Dialog dialog = new Dialog();
    
        public void onModuleLoad() {
            createUploadDialog();
            final Button button = new Button("Click me");
            button.addSelectionListener(new SelectionListener<ButtonEvent>() {
                @Override
                public void componentSelected(ButtonEvent buttonEvent) {
                    dialog.show();
                }
            });
            RootPanel.get().add(button);
        }
    
        private void createUploadDialog() {
            dialog.setHeading("Upload a file");
            dialog.setMinWidth(350);
            dialog.setMinHeight(150);
            dialog.setModal(true);
            dialog.setLayout(new FitLayout());
            dialog.setButtons(Dialog.OKCANCEL);
    
            FormPanel uploadForm = new FormPanel();
            uploadForm.setHeaderVisible(false);
            uploadForm.setAction("/upload");
            uploadForm.setEncoding(FormPanel.Encoding.MULTIPART);
            uploadForm.setMethod(FormPanel.Method.POST);
            uploadForm.setButtonAlign(Style.HorizontalAlignment.CENTER);
    
            FileUploadField fileUpload = new FileUploadField();
            fileUpload.setEmptyText("No file chosen");
            fileUpload.setName("myFile");
            fileUpload.setFieldLabel("upload");
    
            uploadForm.add(fileUpload);
            dialog.add(uploadForm);
        }
    }
    Thanks
    Carl

  5. #5
    Ext User
    Join Date
    Mar 2010
    Posts
    6
    Vote Rating
    0
    carl.cronje@gmail.com is on a distinguished road

      0  

    Default


    Hi Sven

    Can you tell me if I am doing something wrong?

    If you need anything else, please let me know.

    Thanks
    Carl

  6. #6
    Sencha User
    Join Date
    Nov 2010
    Posts
    4
    Vote Rating
    0
    vortex-5 is on a distinguished road

      0  

    Default


    I'm interested in knowing this as well.

  7. #7
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I was able to reproduce this and i will look into it

Similar Threads

  1. Browser -Compatability Issue
    By nidhi.patel in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 20 Oct 2010, 4:25 AM
  2. Iphone, android, webOS and Blackberry compatability breakdown
    By oliverashford in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 23 Aug 2010, 11:16 PM
  3. core example menu browser compatability
    By dgerhard in forum Ext: Q&A
    Replies: 0
    Last Post: 30 Jul 2010, 4:12 PM
  4. FileUploadField and IE
    By cupakob in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 17 Jun 2010, 1:46 AM
  5. FileUploadField
    By peternorman in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 3 Feb 2009, 12:48 PM

Thread Participants: 4