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
On the server side, you MUST do the following, even though it looks a bit odd:
the response type makes the browser render the response in the iframe ExtJS uses ExtJS reads that from the DOM, and interprets it as JSON, looking for the success field.
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 (<tt>'about:blank'</tt>, except for IE in secure mode, which is <tt>'javascript:""'</tt>).
* @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).
following your suggestions and many test, here is what I did. I just assign the SSL_SECURE_URL constants right after I included the extall library to a blank image on my https application.
Ext.SSL_SECURE_URL = 'https://mysite.com/blank.gif';
No problem anymore.
Thanks a lot.
This is what Ext writes to the document.
<iframe id="ext-gen170" name="ext-gen170" class="x-hidden" src="about:blank"><html><head></head><body></body></html></iframe>
This problem can be resolve by setting a valid https src path e.g. https://yousite.com/blank.html
I haven't found yet how to modify the src. Any help would be welcome