Accordion re-creation

Accordion re-creation


Hi,
I created an accordion in a dialog. Then I populate some data into the
accordion using chain,js plugin via ajax call.
The problem is when each time the script populate some data, the
accordion seems not working, so I put the accordion in the ajax
success as sample below and it works
$.ajax ({
type: "GET",
cache: false,
url: "getdata.php",
data: {srch: srch},
dataType: 'json',
success: function (d) {
$("#dialogInner").item(d).chain();
$("#accordion").accordion({fillSpace:true});
}
});
#accordion selector is inside the #dialogInner selector.
My question is does this call which creates accordion every time the
data is populate will cause any problem?
The ajax call will be initiated several time on the screen.
Thanks






















    • Topic Participants

    • aziem