Thanks for the prompt reply MorningZ,

Apologies for the inaccurate description, the apparent  leak is only
in IE6
I took your advice, created a simple table 10*200, based on the one on
the plugin page.
The only scripts on the page are:

 jquery-1.3.1.js,
 jquery.tablesorter.js,  and the constructor:

$(document).ready(function()
    {
        $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
    }
);

On each refresh in IE6 the memory rises by 1,200k

If I reduce the table size to only one row, the memory still rises by
700k on each refresh.

the page html looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html;
charset=windows-1250">
    <title></title>
    <script type="text/javascript" src="./support/scripts/
jquery-1.3.1.js">
</script>
    <script type="text/javascript" src="./support/scripts/
jquery.tablesorter.js">
</script>
    <script type="text/javascript">

    $(document).ready(function()
    {
        $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
    }
    );

    </script>
  </head>
  <body>
    <table id="myTable">
      <thead>
        <tr>
          <th>
            Last Name
          </th>
          <th>
            First Name
          </th>
          <th>
            Email
          </th>
          <th>
            Due
          </th>
          <th>
            Web Site
          </th>
          <th>
            Last Name
          </th>
          <th>
            First Name
          </th>
          <th>
            Email
          </th>
          <th>
            Due
          </th>
          <th>
            Web Site
          </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>
            Smith
          </td>
          <td>
            John
          </td>
          <td>
            jsm...@gmail.com
          </td>
          <td>
            $50.00
          </td>
          <td>
            http://www.jsmith.com
          </td>
          <td>
            Smith
          </td>
          <td>
            John
          </td>
          <td>
            jsm...@gmail.com
          </td>
          <td>
            $50.00
          </td>
          <td>
            http://www.jsmith.com
          </td>
        </tr>
      </tbody>
    </table>
  </body>
</html>


I have tried using jquery's unbind on th elements to deallocate it,
also setting the $("#myTable").html('') to remove the dom elements,
but nothing seems to work.

Any help with this would be greatly appreciated!!

thanks.





On Jun 15, 2:14 pm, MorningZ <morni...@gmail.com> wrote:
> I wouldn't be so quick to point fingers @ the plugin....
>
> There's lots of people on this list using it, with tables larger than
> your 10x200, without any talk of memory leaks of 2 megs on a page
> refresh...
>
> I'd start super simple (static HTML, tablesorter applied with all
> default options) and the add your code on top of that to figure out
> where/why the leak is happening.....
>
> On Jun 15, 7:24 am, pob <pierce.obr...@gmail.com> wrote:
>
> > Hi there,
> > I have a table, 10 cols, 200 rows. Using tablesorter causes a memory
> > leak on every page refresh of almost 2mB.
> > A smaller table causes a proportionately smaller memory leak.
> > Is there way to clear this memory? I've tried setting inner html of
> > the table to '', but it makes no difference. Is there even a universal
> > method i can call to remove any trace of any jquery plugin I have on
> > the page?
> > Any ideas would be great, I love this plugin and don't want to have to
> > use a different one instead.
>
> > - Pierce

Reply via email to