so basicaly, i have to call for the page, and after calling for the page, i call fo the tablesorter function... but how do i know, that loading the page was finished?
On 6 aug, 15:13, MorningZ <morni...@gmail.com> wrote: > "Does anyone know a solution for this problem? " > > Yeah, wire up the Tablesorter code to the table *after* it is placed > on the page..... because whether the table was there when the page > was generate or dynamically pulled in makes no difference, as long as > it was there in the DOM when ".tablesorter()" was called > > On Aug 6, 8:56 am, mila <mshneyder...@gmail.com> wrote: > > > > > Here is what I had to do to get tablesorter work for me after changin > > table body: > > > var currSort = $("#myTable")[0].config.sortList; //save > > current sorting > > > setData(data); //update table with new data > > > $("#myTable").trigger("update"); //refresh sorting cache > > $("#myTable").tablesorter(); > > $("#myTable").tablesorter(); // had to do that twice for > > column sorting to work in both directions > > $("#myTable").trigger("sorton", [currSort]); > > > Hope that helps. > > > On Aug 6, 6:23 am, solow <solow.wes...@gmail.com> wrote: > > > > nobody? > > > i kind of, really need a tablesorter for a dynamically loaded page... > > > > On 5 aug, 04:21, solow <solow.wes...@gmail.com> wrote: > > > > > Hey, > > > > > I'm using table sorter. > > > > >http://tablesorter.com/ > > > > > Now, this is great and all, but it doesn't seem to work in dynamically > > > > loaded pages. > > > > > Does anyone know a solution for this problem? > > > > > I hope so.. > > > > > thanks :)- Tekst uit oorspronkelijk bericht niet weergeven - > > - Tekst uit oorspronkelijk bericht weergeven -