One thing I have noticed is that it does not work when you have a table footer set:

<table id="simple-init-sort">
    <thead>
        <tr>
            <th>Name</th>

            <th>Age</th>
            <th>Total purchase</th>
            <th>Email</th>
            <th>Date</th>
        </tr>
    </thead>
    <tbody>

        <tr>
            <td>Peter</td>
            <td>28</td>
            <td>$9.99</td>
            <td> [EMAIL PROTECTED]</td>
            <td>Jul 6, 2006 8:14 AM</td>

        </tr>
        <tr>
            <td>John</td>
            <td>32</td>
            <td>$19.99</td>
            <td>[EMAIL PROTECTED]</td>
            <td>Dec 10, 2002 5:14 AM</td>

        </tr>
        <tr>
            <td>Clark</td>
            <td>18</td>
            <td>$15.89</td>
            <td>[EMAIL PROTECTED] </td>
            <td>Jan 12, 2003 11:14 AM</td>

        </tr>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="5">3 Records found</td>

        </tr>
    </tfoot>
</table>

However, if you alter the 'flatten' function, it works:

flatten: function(columnData,columnCache,columnIndex) {
            var flatData = [];
            var l = columnData.length;
            for (var i=0;i < l; i++) {
                // make sure only cells in tbody are added
                if(columnData[i].parentNode.nodeName.toLowerCase() == "tbody") {
                    flatData.push([i,columnCache[columnIndex].format($.tableSorter.utils.getElementText(columnData[i].cells[columnIndex]))]);
                }
            }
            return flatData;
        }

On 30/08/06, Christian Bach <[EMAIL PROTECTED]> wrote:
Hi All,

I'm currently working on the 1.1 release of tableSorter.

I would love to here your request for new features, improvements and
thoughts to make this little plugin even better!


Here's my current list of features and improvements that will be in 1.1:
* A real user manual, with more examples and all parameters documented.
* Make parameter names more logical.
* Provide api documentation.
* Commit the tableSorter in to the jQuery svn with manual and api.
* Add function for highlighting current selected row.
* Provide a excel "theme" using css.
* Add support for row numbering.
* Add filter support.
* Add John's pager plugin, and provide examples.
* Add support for custom icons (adding images to headers).
* Add more parsers (UK long date).
* Add support for HTML elements in td cells (Get values from any child
element)

Thanks to everyone for all the support, cheers and comments!

/christian

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to