jd_porter
5 Jul 2007, 1:28 PM
I'm trying to use an iframe in an effort to speed up DOM traversal when creating the grid.
The code I have looks like this:
var iframe = Ext.DomHelper.append(document.body, {tag:'iframe', name:'gridIframe', id:'gridIframe'});
var gridContainer = Ext.DomHelper.append (iframe, {tag:'div', id:'gridContainer'});
var grid = new Ext.grid.EditorGrid(gridContainer, {ds: ds,cm: cm});
and the iframe and gridContainer creation work ok, but when it comes time to make the grid, I get the following error:
this.container has no properties
[Break on this error] this.container.update("");
ext-all-debug.js (line 23100)
this.container has no properties
That line in ext-all-debug is
this.container = Ext.get(container);
this.container.update("");
using firebug to peek around, the container variable is "<div id="gridContainer"><>/div>". shouldn't it be the name of the container instead?
I've tried using the iframe directly, and got a similar error. Is what I'm doing possible?
The code I have looks like this:
var iframe = Ext.DomHelper.append(document.body, {tag:'iframe', name:'gridIframe', id:'gridIframe'});
var gridContainer = Ext.DomHelper.append (iframe, {tag:'div', id:'gridContainer'});
var grid = new Ext.grid.EditorGrid(gridContainer, {ds: ds,cm: cm});
and the iframe and gridContainer creation work ok, but when it comes time to make the grid, I get the following error:
this.container has no properties
[Break on this error] this.container.update("");
ext-all-debug.js (line 23100)
this.container has no properties
That line in ext-all-debug is
this.container = Ext.get(container);
this.container.update("");
using firebug to peek around, the container variable is "<div id="gridContainer"><>/div>". shouldn't it be the name of the container instead?
I've tried using the iframe directly, and got a similar error. Is what I'm doing possible?