Hello,
I’m using a ListBox that is bind by xml. I have a treeview in my page and when i click on items from the treeview, it refreshs the listbox.
Here is the code called when an item of the treeview is clicked :
function load_list(id)
{
var src = getDataSource_lst(‘data_provider.php?id=’ + id);
dataAdapter_lst = new $.jqx.dataAdapter(src);
try
{
$(“#lstBatch”).jqxListBox({ source: dataAdapter_lst });
}
catch(err)
{
alert(err);
}
}
The problem is that after 8 calls, i get the following exception : “TypeError: Cannot read property ‘style’ of null” and of course, the list is not refreshed.
Am I doing something wrong ?
Thanks for your help,
Marco