in reply to CGI::Ajax can not control returned table css style

What part of your problem relates to Perl?

Does Perl output the correct HTML? If no, then you will need to show us the HTML you expect, and the HTML you get, and tell us where they differ.

I suspect that your problem only relies on the Javascript side of things. If you replace an item on the Javascript DOM, you need to rebind all the events you want on it.

  • Comment on Re: CGI::Ajax can not control returned table css style

Replies are listed 'Best First'.
Re^2: CGI::Ajax can not control returned table css style
by lightoverhead (Pilgrim) on May 12, 2012 at 19:52 UTC

    Thank you Corion.

    The perl script actually output the correct table

    The problem I encountered is that this table can not be sorted by tablesorter plugin evenif I have printed an id='resulttable' for this returned table.

      Maybe you want http://jquerymonks.org? You will need to learn how to re-bind events on to Javascript DOM objects. This has nothing to do with Perl, so please don't ask Javascript (or jQuery) questions here.

      A reply falls below the community's threshold of quality. You may see it by logging in.