Autoload items in a Panel issue
March 18th, 2010I have a panel and I want to load from PHP it's items which are some simple left-menu compoments like:
{
title: 'Ajutor',
iconCls:'icon-help',
height:200,
collapsible: true,
menu_items: [
{ iconCls:'icon-help', id:'view-all', text:'Help & Support' },
'-',
{ id:'help-details', text:'Aici vor aparea detalii despre opţiunea selectă' }
]
}
As you can see there's nothing to compile or anything and I was wondering if there's any possibility to load them via AJAX in smth like:
var Panel=new Ext.Panel(
title:'Title',
defaults:{xtype:'xactionpanel',frame:true},
items: [
// LOAD DATA FROM URL data.php?mode=draw&what=left-menu
]
);
Thank in advance,
Frantz
Thanks for the tip ;)
#If you have any other info about this subject , Please add it free.# |