Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by GD on Sep 09, 2009 22:33
open dhtmlx forum
Accordion load on demand

Hi,

Is there any way for accordions items to be loaded on demand as it is done in Tabbar using 'iframes-on-demand' ?

Thanx & Regards,
GD

 

Answer posted by Support on Sep 10, 2009 04:28
Hello,

Unfortunately, not.

You can do this manually, like this:

var isAttached = false;
dhxAccord.attachEvent("onActive", function(id){
    if (id=="neededCellId" && !isAttached) {
        dhxAccord.cells(id).attachURL(...);
        isAttached=true;
    }
})
Answer posted by GD on Sep 10, 2009 09:22

Thank you for your prompt response.

I'll try this.