Tablesorter jquery plugin crashes in FF 3.6.12 with msg "table.config.parsers [c] is undefined"

With the latest version of the plugin from 5/4/2011 on OSX 10.6.7 w FF 3.6.12 Chrome, Safari and IE work fine. I also tried it with FireBug disabled, but to no avail.

Here is the HTML I'm testing with:

        <!DOCTYPE html>
        <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
          <head>
          <script src="/javascripts/jquery/jquery-1.4.4.min.js?1301000558" type="text/javascript"></script>
          <script src="/javascripts/jquery.tablesorter.js?1304537000" type="text/javascript"></script>
          <script>
        $(document).ready(function () {
            $("#testtable").tablesorter( {debug:true} );
        });
          </script>
          </head>

          <body>
                <table id='testtable'>
                <thead>
                <th>Col1</th>
                <th>Col2</th>

                <th>Col3</th>
                </thead>

                <tbody>
                <tr>
                <td>val1</td>
                <td>val2</td>
                <td>val3</td>

                </tr>
                <tr>

                <td>val2</td>
                <td>val1</td>
                <td>val3</td>
                </tr>
                <tr>

                <td>val3</td>

                <td>val1</td>
                <td>val2</td>
                </tr>
                </tbody>
                </table>
          </body>

        </html>

Using firebug, here are the messages before trying to click the column heading:

Built headers:,0ms
[th.header, th.header, th.header]
Checking if value was empty on row:0
Checking if value was empty on row:0
Checking if value was empty on row:0
column:0 parser:text column:1 parser:text column:2 parser:text
Building cache for 3 rows:,0ms

Here are the errors after clicking:

    table.config.parsers[c] is undefined

which is in the setTimeout function around line 600 in an uninitialized source.

+3
source share
3 answers

, , <TR>, COLSPAN .
  <td colspan="3"> <TD>, .

+4

, , PHP. IE. , , , :

 $("#testtable").tablesorter( {debug:false} );

JS , PHP- , . .

0

I fixed this problem by downloading version 2.15.5 from here .

0
source

All Articles