Put it at the end of the "changeBalanceTable" event
On May 6, 2:36 am, Evan <sicsempere...@gmail.com> wrote: > I'm having a similar problem with my site > > I'm loading a table like this: > > <body onload="setTimeout('changeBalanceTable();',100);"> > > The changeBalanceTable() function simply inserts a table from a php > script into a div using .innerHTML = TABLE > > Since my table loads after 100ms how do I set my TableSorter to sort > it since the table is not in the DOM tree initially. > > I tried using setTimeout and then calling tableSorter, but that didn't > work for me. > > Thanks for any suggestions. > > Evan