EXTJS Fileupload - Problem with IE8 security bar

后端 未结 4 1096
迷失自我
迷失自我 2021-01-16 06:46

I\'m trying to make an EXTJS application to send email with an attachment. So I have a very basic form that include textfield for the subject, another textfield with inputT

4条回答
  •  佛祖请我去吃肉
    2021-01-16 07:15

    I believe ExtJs is doing this:

        if(Ext.isIE) {
            frame.src = Ext.SSL_SECURE_URL;
        }
    

    Where that string is defined as:

        /**
         * URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
         * the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""').
         * @type String
         */
        SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank',
    

    ...and isSecure is:

        isSecure = /^https/i.test(window.location.protocol);
    

    So that's where your about:blank is coming from. If that doesn't work, it sounds like you need to set that URL to something that works for you (or maybe the value of isSecure is acting up).

提交回复
热议问题