ee3a84w
Thursday, January 8, 2009

[SOLVED]Accordian load after click

  • Hi there,

    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


  • Great works a treat!


    {
    title: 'Contact',
    id: 'contactFormPanel',
    listeners: {
    'expand': function(e) {
    loader(contactsFile, 'asdf')
    }
    }
    }


    Thanks for your help!

    -Lobos


  • If autoLoad is not null panel loads itself on render. If you want a different behavior don't use autoLoad but load your panels (Accordion items) from accordion expand event handler.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED]Accordian load after click , Please add it free.