-
16 Nov 2010 11:42 AM #1
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.
-
17 Dec 2010 2:22 AM #2
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
-
17 Dec 2010 3:24 AM #3
Can you please post a fully working testcase implementing EntryPoint that shows this? This works fine here: http://www.sencha.com/examples/#fileupload
-
17 Dec 2010 4:11 AM #4
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:
ThanksCode: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); } }
Carl
-
17 Dec 2010 4:29 AM #5
I was able to reproduce this and i will look into it
-
17 Dec 2010 4:31 AM #6
Hi Sven
Can you tell me if I am doing something wrong?
If you need anything else, please let me know.
Thanks
Carl
-
17 Dec 2010 5:48 AM #7
-
17 Dec 2010 5:52 AM #8
Hi vortex-5
Did you also put a FileUploadField in a Dialog?
Carl
-
17 Dec 2010 7:34 AM #9
No actually I think ours in in a normal panel.
-
13 Jan 2011 3:27 PM #10
I am also experiencing the same problem of the 2 clicks requirement in IE. I'm testing in IE 7. Has there been an update on this?
Similar Threads
-
Browser -Compatability Issue
By nidhi.patel in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 20 Oct 2010, 4:25 AM -
Iphone, android, webOS and Blackberry compatability breakdown
By oliverashford in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 23 Aug 2010, 11:16 PM -
core example menu browser compatability
By dgerhard in forum Ext: Q&AReplies: 0Last Post: 30 Jul 2010, 4:12 PM -
FileUploadField and IE
By cupakob in forum Ext GWT: DiscussionReplies: 0Last Post: 17 Jun 2010, 1:46 AM -
FileUploadField
By peternorman in forum Ext GWT: Help & Discussion (1.x)Replies: 1Last Post: 3 Feb 2009, 12:48 PM


Reply With Quote