"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 :)

Reply via email to