Problem with PDF and IE10
Hi,
I've got a problem when i try to load a PDF file into an iframePanel with IE10 (Working on IE9, FF, etc...)
In fact, when I load a PDF, the pdf is shown in the iframe with Foxit or Acrobat Reader.
But if i want to change the pdf in the iframe or hide it, the PDF still showed...
This issue is known (http://social.msdn.microsoft.com/For...f34ee02ab74/);
My solution in mirame.js
Code:
setLocation : function(url, discardUrl, callback, scope) {
var src = url || this.src || this.resetUrl;
var O = this._observable;
this._unHook();
Ext.isFunction(callback) && O.addListener('_docload', callback, scope||this, {single:true});
this.showMask();
var s = this._targetURI = (Ext.isFunction(src) ? src() || '' : src);
if (discardUrl !== true) {
this.src = src;
}
try {
this._frameAction = true; // signal listening now
this.getWindow().location.replace(s);
this.checkDOM();
} catch (ex) {
O.fireEvent.call(O,'exception', this, ex);
};
this.setSrc(""); //TO ADD
return this;
},
MIFrame support for IE11 and Ext JS 3.4.3
We've upgraded to Ext JS 3.4.3 in order to support IE 11. This seems to have broken the ManagedIFrame in the following code:
Code:
if (Ext.isIE) {
head.appendChild(rules);
ss = rules.styleSheet;
ss.cssText = cssText;
} else {
ss is returned as null which then breaks a lot of things. Oddly enough, it works fine in Compatibility View mode.
Are you planning on putting out an update to support IE11/Ext JS 3.4.3?
setSRC is not available in Extjs 5 IFrame
In Extjs 5 , there is Ext.ux.IFrame similar to this. Have any body explored and let me know, any method similer to setSrc() method. I am asking because, in IFrame in Extjs 5 src is private variable, so I defined it with URL to get data, once data on the URL changes I want to reload the data once again. I can see a method IFrame. getLoader().load(). But, load and setSrc() has signficent difference. When I click the refresh button, I want to get data from that src.
Any help, appriciated.
Thanks
Ranjay
Fix for other IE11 issues.
Forgive me it this has been mentioned in this thread. I searched and found nothing here or much in the Google-sphere. I did find:
http://stackoverflow.com/questions/26834845/in-ie11-event-is-not-firing-in-javascript
Which explains the issue.
Recently, we had an issue with the ManagedIframe callback. Found the error about line 265 in mif.js
Previously, this did:
Code:
Ext.isIE? 'readystatechange' : 'load',
We have it now:
Code:
this.on(
'load',
this.loadHandler,
this,
/**
* Opera still fires LOAD events for images within the FRAME as well,
* so we'll buffer hopefully catching one of the later events
*/
Ext.isOpera ? {buffer: this.operaLoadBuffer || 2000} : null
);
We aren't supporting any browser < IE11, so ymmv. MS dropped their preprietary support for IE's iframe "readystatechange" event, instead, they now use the W3C standard, 'load'.