PDA

View Full Version : NOOB::: How do i dynamicly update content



barkermn01
12 May 2010, 5:39 AM
Hi All,

Im new to ExtJS, Trying to build a dynamic page using Panels,

so i have 2 questions

1st. can i load a panel into another panel

2nd. how do i update the html content of a panel dynamically.

I have googled and look though doc's but i just cant find an simple answer

barkermn01
12 May 2010, 6:31 AM
Done the first one,


var viewport = new Ext.Veiwport({
layout: 'border',
items:[
new Ext.Panel({
title:'Navication',
applyTo:"menu",
items:[
new Ext.Panel({
width: '100%',
title: 'Management',
collapsible:true,
}),
new Ext.Panel({
width: '100%',
title: 'MySQL',
collapsible:true,
}),
new Ext.Panel({
width: '100%',
title: 'Apache',
collapsible:true,
}),
new Ext.Panel({
width: '100%',
title: 'PHP',
collapsible:true,
}),
new Ext.Panel({
width: '100%',
title: 'DNS',
collapsible:true,
})
]
})]
});

Now jsut the second one to do.

aconran
12 May 2010, 10:18 AM
In order to update the content area of an Ext.Panel you can use teh update (http://www.extjs.com/deploy/dev/docs/?class=Ext.Panel&member=update) method.