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.

3 comments :