ExtJs4 load panel from URL
11,708
This also work:
Ext.define('EI.view.Viewport',{
extend: 'Ext.container.Viewport',
alias: 'widget.principal',
layout: {
type: 'vbox',
align: 'center',
pack: 'center'
},
items:[
{
xtype: 'panel',
title: 'Mi Documentacion',
width: 800,
height: 600,
border: false,
autoScroll: true,
loader: {
autoLoad:true,
url :'http://localhost/docs/'
}
}
]
});
Author by
Wisu Suntoyo
Updated on June 04, 2022Comments
-
Wisu Suntoyo almost 2 years
In ExtJs 3x this code
Ext.getCmp('specific_panel_id').load({ url:'url_containing_scripts.htm', scripts:true, params:{ something:else } });
works for loading content from URL into a specific panel...
However it does not work in ExtJs 4.x.