-
8 Jan 2010 8:09 AM #1
[FIXED-129][Ext 3.0.3] Form upload: hidden iframe not hidden in FF
[FIXED-129][Ext 3.0.3] Form upload: hidden iframe not hidden in FF
When submitting a form with a {fileUpload: true} configuration, Ext temporarily creates an iframe, adds an HTML form and performs a standard submit on it.
The temporary iframe should not be visible, so Ext adds a class "x-hidden" to it. This is done with the following code in Ext.data.Connection#doFormUpload:
In FF (3.5.5 in my case) setting the class via Element.set({className: "..."}) fails and results in the following HTML, causing the iframe to stay visible during its lifetime:Code:Ext.fly(frame).set({ id: id, name: id, className: 'x-hidden', src: Ext.SSL_SECURE_URL // for IE });
Tested on IE7 also, no problem there.Code:<iframe id="ext-genXXX" name="ext-genXXX" classname="x-hidden" src="blank.html">
Thanks for looking into this,
Stefan
-
8 Jan 2010 8:36 AM #2
Should be
Code:Ext.fly(frame).set({ id: id, name: id, className: 'x-hidden', src: Ext.SSL_SECURE_URL // for IE }, false);Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
8 Jan 2010 11:09 PM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
IMHO it should be:
Code:Ext.fly(frame).set({ id: id, name: id, cls: 'x-hidden' // fixed in Core rev. 70 }); doc.body.appendChild(frame); Ext.fly(frame).set({ src: Ext.SSL_SECURE_URL // for IE and Opera 10 });
-
9 Jan 2010 7:33 AM #4
Fixed in Core-SVN for 3.x.
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote

