View Full Version : How to load local html file in Ext.window.Window iframe?

9 Jan 2014, 9:37 AM
var win = Ext.create("Ext.window.Window",{
title: "Manage Reports"
,height: 300
,width: 250
,modal: true
,items : [{
xtype : "component",
autoEl : {
tag : "iframe",
//src : "reports.html"
html : '<iframe src="reports.html" width="100%" height="100%"></iframe>'


I tried both src:".." and html:<...> and am not getting a 404 error, but my html file (which contains a form) will not display in the iframe. Also, in the script tab in Firebug, I also do not see my reports.html file being called.

9 Jan 2014, 9:54 AM
Verify your path/file or try using your entire URL for src file

See if this will work for you:

Ext.create("Ext.window.Window", {
title: 'HTML Window',
modal: true,
html: '<iframe src="frame.html" width="100%" height="100%" ></iframe>',
width: 700,
height: 500

10 Jan 2014, 12:16 PM
2 for 2! thx again