Oct 14, 2010, 2:02 PM
[CLOSED] [1.0] getBody() Error In IE8
Hello,
I am using the Ext.NET 1.0 SVN Build (last fetched on 12/10/2010) and I am now having issues with the getBody() function of the Ext.Panel override.
I am using some custom code (overrides on the TabPanel) that allows me to essentially map keys to tab ID's. The reason being that when a given tabbed window is in a certain mode (modes can be: query, edit, view etc) it has a certain ID however because you can't change the actual ID of the panel/component we use a map to map changing ID's to a fixed tab ID. I hope that makes sense.
This has been working fine in all browsers with the old build of 1.0 we were using. This old build used the following getBody() function:
I have attached the code I am using to this post which is a cut down version of my fuller project. I don't know as this is necessarily a bug in the Ext.NET framework because it all works fine without my extra code, however, before getBody() changed, it did work fine.
I have removed the Ext DLLs from my attachment due to size, the latest SVN ones should cause the problem I am seeing to happen.
Any help would be great thank you.
I am using the Ext.NET 1.0 SVN Build (last fetched on 12/10/2010) and I am now having issues with the getBody() function of the Ext.Panel override.
I am using some custom code (overrides on the TabPanel) that allows me to essentially map keys to tab ID's. The reason being that when a given tabbed window is in a certain mode (modes can be: query, edit, view etc) it has a certain ID however because you can't change the actual ID of the panel/component we use a map to map changing ID's to a fixed tab ID. I hope that makes sense.
This has been working fine in all browsers with the old build of 1.0 we were using. This old build used the following getBody() function:
getBody : function () {
if (this.iframe) {
return this.iframe.dom.contentWindow;
}
return Ext.get(this.id + "_Content") || this.body;
},
However, the new version, which indexes window[] doesn't work. It seems that in Firefox and Chrome the 'this.iframe.dom.id' is something like 73552384_IFrame and so we can index window["73552384_IFrame"]. However, in IE8 we can't index window[] using that. I have noticed that I can however do window["73552384"]. Therefore an error is thrown on self.focus() because 'self' is undefined.I have attached the code I am using to this post which is a cut down version of my fuller project. I don't know as this is necessarily a bug in the Ext.NET framework because it all works fine without my extra code, however, before getBody() changed, it did work fine.
I have removed the Ext DLLs from my attachment due to size, the latest SVN ones should cause the problem I am seeing to happen.
Any help would be great thank you.
Last edited by Daniil; Oct 14, 2010 at 5:46 PM.
Reason: [CLOSED]