PDA

View Full Version : [FIXED-129][Ext 3.0.3] Form upload: hidden iframe not hidden in FF



Stefan B
8 Jan 2010, 8:09 AM
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:


Ext.fly(frame).set({
id: id,
name: id,
className: 'x-hidden',
src: Ext.SSL_SECURE_URL // for IE
});

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:


<iframe id="ext-genXXX" name="ext-genXXX" classname="x-hidden" src="blank.html">

Tested on IE7 also, no problem there.

Thanks for looking into this,
Stefan

Animal
8 Jan 2010, 8:36 AM
Should be



Ext.fly(frame).set({
id: id,
name: id,
className: 'x-hidden',
src: Ext.SSL_SECURE_URL // for IE
}, false);

Condor
8 Jan 2010, 11:09 PM
IMHO it should be:

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 (http://www.extjs.com/forum/showthread.php?t=79640)
});

hendricd
9 Jan 2010, 7:33 AM
Fixed in Core-SVN for 3.x.