1. #1
    Ext User
    Join Date
    May 2007
    Location
    Minnesota
    Posts
    66
    Vote Rating
    0
    IGx89 is on a distinguished road

      0  

    Exclamation [Ext 1.1b1] Form file upload response appearing in new window under IE

    [Ext 1.1b1] Form file upload response appearing in new window under IE


    Anyone else experiencing this? When I use Ext 1.1b1's ability to upload files by posting the form in a dynamically-created IFRAME, in IE only the response from the POST appears in a new window (instead of in the hidden IFRAME). My fix, taken from this helpful thread, is as follows (inside Ext.data.Connection):

    Code:
        doFormUpload : function(o, ps, url){
            var id = Ext.id();
            var frame = document.createElement('iframe');
            frame.id = id;
            frame.name = id;
            frame.className = 'x-hidden';
            if(Ext.isIE){
                frame.src = Ext.SSL_SECURE_URL;
            }
            document.body.appendChild(frame);
    +
    +       if(Ext.isIE){
    +           document.frames[id].name = id;
    +       }
    
    
            var form = Ext.getDom(o.form);
            form.target = id;
            form.method = 'POST';
            form.enctype = form.encoding = 'multipart/form-data';
            if(url){
                form.action = url;
            }
    ...

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    18
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Thanks for findng a fix. I will add it in!
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    225
    Vote Rating
    0
    seldon is on a distinguished road

      0  

    Default


    Thanks! This is what I was looking for!

  4. #4
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Virginia, USA
    Posts
    504
    Vote Rating
    0
    vtswingkid is on a distinguished road

      0  

    Default


    I guess I better try the latest svn update. I just reverted back to 1.01a and everything fixed. Glad I found your post before I posted my own. Might have gotten beaten by the forum bruiser.

    EDIT: I don't see this in the latest release of 1.1 svn.

    EDIT: I do see it in the latest release of 2.0 svn. Could we get it put in 1.1 also please.

  5. #5
    Sencha User MD's Avatar
    Join Date
    Mar 2007
    Posts
    178
    Vote Rating
    0
    MD is on a distinguished road

      0  

    Default


    I second that request

  6. #6
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    18
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Quote Originally Posted by vtswingkid View Post
    I do see it in the latest release of 2.0 svn. Could we get it put in 1.1 also please.
    The joys of dual codebases. It's added!
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

  7. #7
    Ext User
    Join Date
    Mar 2009
    Posts
    1
    Vote Rating
    0
    poashoas is on a distinguished road

      0  

    Default Do I get this right?

    Do I get this right?


    Hi people,

    Do I get this right? I am not using Ext so I like to you use it to... but have to implement it differently.. I just create a dynamic iframe? Is this fooling IE so it posts to an iframe after all??