$('#myTable').tablesorter(); issue

Posted by Sahoo under jQuery on 1/24/2012 | Points: 10 | Views : 2422 | Status : [Member] | Replies : 4
If I clear rows from the table then add more rows, I call tablesorter
again:
$('#myTable').tablesorter();
When I try to sort,then I got javascript runtime error.
There doesn't seem to be a way to clear the tablesorter before
reloading it with the new table results.

Any suggestions?
Thanks in advance.




Responses

Posted by: Hemanthlaxmi on: 1/24/2012 [Member] Starter | Points: 25

Up
0
Down
can you please show the error what you are getting?

If this helps you .
Please "Mark as Answer"

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 1/24/2012 [Member] Starter | Points: 25

Up
0
Down
SortWrapper undefined
type is nullor undefined

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hemanthlaxmi on: 1/25/2012 [Member] Starter | Points: 25

Up
0
Down
can you please send the code and mark where you are getting the error?

If this helps you .
Please "Mark as Answer"

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 1/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
I am getting error in this line of plugin
var s = (table.config.parsers[c].type == "text") ? ((order == 0) ? makeSortFunction("text", "asc", c) : makeSortFunction("text", "desc", c)) : ((order == 0) ? makeSortFunction("numeric", "asc", c) : makeSortFunction("numeric", "desc", c));


error is
Microsoft JScript runtime error: Unable to get value of the property 'type': object is null or undefined

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response