Ajax

jQuery DataTables has the ability to read data from virtually any JSON data source that can be obtained by Ajax. This can be done, in its most simple form, by setting the ajax option to the address of the JSON data source.

jQuery DataTables Checkboxes extension requires that column containing checkboxes had unique data.

Example below receives the following data via Ajax in JSON format. For simplicity, each element of the array corresponds to the appropriate column in the table. First element of the array holds the data for the column containing checkboxes and is unique (1, 2, 3, etc.).

{
  "data": [
    [
      "1",
      "Tiger Nixon",
      "System Architect",
      "Edinburgh",
      "5421",
      "2011/04/25",
      "$320,800"
    ],
    [
      "2",
      "Garrett Winters",
      "Accountant",
      "Tokyo",
      "8422",
      "2011/07/25",
      "$170,750"
    ],
    [
      "3",
      "Ashton Cox",
      "Junior Technical Author",
      "San Francisco",
      "1562",
      "2009/01/12",
      "$86,000"
    ],
    ...
}

Example