Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35420

Handling JSON or counting tags

$
0
0

I am trying to count the number of occurrences that a certain code shows up in a particular column in my dataTable, powered by AJAX.

I suppose there are two ways to go about it.

1) I can add another JSON element with my sEcho, iTotalRecords, iTotalDisplayRecords, aaData, and call it .... myCountCode.

2) I can develop some client side JS to count it after every AJAX request.

The problem is that I don't know how to go about either one on the client side. Could someone show me the way in JS?


Viewing all articles
Browse latest Browse all 35420

Trending Articles