Wednesday, September 21, 2011

[SOLVED] jQuery Tablesorter Plug-in 'config.parsers' is null

I encountered an issue with jQuery Tablesorter Plug-in on Internet Exporer (IE) when the table is empty. Say, if you have a table looks like below:
<table id="myTable">
  <thead><tr><th>Col1</th><th>Col2</th></tr></thead>
  <tbody></tbody>
</table>
when you call $("#myTable").tablesorter(); You will get following error on IE saying:

'config.parsers' is null or not an object



If you are running Firefox (FF), you won't see this error but your javascript code on the page might be broken.
So, you should either remove the table element from you page or render empty row for the table if it's empty. Hope that helps you too.

4 comments :

  1. JavaScript is the language future. The new JavaScript Version (Ecmascript 6) has been relaeased.

    Javascript Online Training Javascript Online Training JavaScript Online Training

    ReplyDelete
    Replies
    1. Great Article IoT Projects for Students

      Deep Learning Projects for Final Year

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete