PDA

View Full Version : TypeError: dom.classList is undefined in IFrame



arpeggian
18 Apr 2013, 1:53 AM
Hello all, I try to implement iframe in Extjs 4, and then i'am getting this error

TypeError: dom.classList is undefined

this is my code



var contentHeight = Ext.getCmp('content-panel-tabs').getHeight();
var contentWidth = Ext.getCmp('content-panel-tabs').getWidth();


Ext.create('Ext.panel.Panel', {
renderTo: 'pdp-wrapper-panel',
autoScroll: false,
border: false,
height: contentHeight,
width: contentWidth,
autoEl : {
tag : "iframe",
src : "http://10.31.1.190/eMagz/album/perencanaan/buku pintar it ver 1.0/"
}
});



Please Help me ..

slemmon
19 Apr 2013, 1:45 PM
I'm not sure if it'll like living in a panel directly like that, but try with:



Ext.widget('panel', {
renderTo: document.body,
autoScroll: false,
border: false,
height: 600,
width: 600,
autoEl : {
tag : "iframe",
src: 'http://www.w3schools.com/'
}
});