-
6 Dec 2011 1:40 AM #1
Answered: A problem was happened in Ext4 about iframe element. Who can help me?
Answered: A problem was happened in Ext4 about iframe element. Who can help me?
I want show a page in the Ext.window use iframe.
It's my code:
When I test the window,I can't see the iframe element.This element(iframe) seems to have been filtered out.What do I do? In ext4.My English sucks,everybody sorry.Code:var window = Ext.create('Ext.window.Window', { title: '供求详情', autoScroll: true, layout: 'fit', modal: true, frame: true, frameHeader: true, html: '<iframe src="http://www.jiezanke.com/Supply/SupplyDetail.html"></iframe>' }).show();Last edited by skirtle; 6 Dec 2011 at 2:38 AM. Reason: Added CODE tags
-
Best Answer Posted by nozer
Thanks tobiu,
I was change my code:
But firebug tips me:"Uncaught TypeError: Cannot call method 'addCls' of null"HTML Code:var window = Ext.create('Ext.window.Window', { title: '供求详情', autoScroll: true, layout: 'fit', modal: true, items:[{ xtype: 'component', autoEl: { tag: 'iframe', src: 'http://www.jiezanke.com/Supply/SupplyDetail.html' } }] }).show();
-
6 Dec 2011 3:34 AM #2Sencha - Services Team
- Join Date
- May 2007
- Location
- Munich (Germany)
- Posts
- 2,292
- Vote Rating
- 6
- Answers
- 58
i would use the items config instead of html and add an iframe with the autoEl:
http://docs.sencha.com/ext-js/4-0/#!...ent-cfg-autoEl
if you prefer the html, i would inspect the dom with the debugging tools, probably the iframe just needs height and width set to 100%.
-
6 Dec 2011 4:30 PM #3
Thanks tobiu,
I was change my code:
But firebug tips me:"Uncaught TypeError: Cannot call method 'addCls' of null"HTML Code:var window = Ext.create('Ext.window.Window', { title: '供求详情', autoScroll: true, layout: 'fit', modal: true, items:[{ xtype: 'component', autoEl: { tag: 'iframe', src: 'http://www.jiezanke.com/Supply/SupplyDetail.html' } }] }).show();


Reply With Quote