Thursday, January 8, 2009
[SOLVED]Accordian load after click
I have an accordion menu and some of the items are using autoload, what i would like is for the load to happen after the panel becomes active. As it is now the panel is loading straight away. Any ideas?
region: 'west',
bodyStyle:'border-bottom:0;border-left:0;border-right:0',
width:250,
margins:'3 1 3 3',
split: true,
title: false,
layout:'accordion',
deferredRender:true,
defaults: {
// applied to each contained panel
bodyStyle: 'padding:15px'
},
layoutConfig: {
// layout-specific configs go here
titleCollapse: true,
animate: true,
activeOnTop: true
},
items: [{
title: 'Information',
items: infoForm
},{
title: 'Contact',
id: 'contactFormPanel',
autoLoad: {
url: 'index.php?lander=console.gui.loadApplicationJS&file='+contactsFile,
scripts: true
}
},{
title: 'Personal',
html: '
Panel content!
'},{
title: 'Work',
html: '
Panel content!
'}],
Thanks!
-Lobos
{
title: 'Contact',
id: 'contactFormPanel',
listeners: {
'expand': function(e) {
loader(contactsFile, 'asdf')
}
}
}
Thanks for your help!
-Lobos
#If you have any other info about this subject , Please add it free.# |