footer_callback.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
  6. <title>DataTables example</title>
  7. <style type="text/css" title="currentStyle">
  8. @import "../../media/css/demo_page.css";
  9. @import "../../media/css/demo_table.css";
  10. </style>
  11. <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
  12. <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
  13. <script type="text/javascript" charset="utf-8">
  14. $(document).ready(function() {
  15. $('#example').dataTable( {
  16. "fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
  17. /*
  18. * Calculate the total market share for all browsers in this table (ie inc. outside
  19. * the pagination)
  20. */
  21. var iTotalMarket = 0;
  22. for ( var i=0 ; i<aaData.length ; i++ )
  23. {
  24. iTotalMarket += aaData[i][4]*1;
  25. }
  26. /* Calculate the market share for browsers on this page */
  27. var iPageMarket = 0;
  28. for ( var i=iStart ; i<iEnd ; i++ )
  29. {
  30. iPageMarket += aaData[ aiDisplay[i] ][4]*1;
  31. }
  32. /* Modify the footer row to match what we want */
  33. var nCells = nRow.getElementsByTagName('th');
  34. nCells[1].innerHTML = parseInt(iPageMarket * 100)/100 +
  35. '% ('+ parseInt(iTotalMarket * 100)/100 +'% total)';
  36. }
  37. } );
  38. } );
  39. </script>
  40. </head>
  41. <body id="dt_example">
  42. <div id="container">
  43. <div class="full_width big">
  44. DataTables footer callback example
  45. </div>
  46. <h1>Preamble</h1>
  47. <p>DataTables using the header and footer callback manipulation functions (fnHeaderCallback() and fnFooterCallback()) you can perform some powerful and useful data manipulation. The example given below shows how a callback function can be used to total up visible (and hidden) data, taking into account all of DataTable's features (pagination, filtering etc).</p>
  48. <h1>Live example</h1>
  49. <div id="demo">
  50. <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
  51. <thead>
  52. <tr>
  53. <th>Rendering engine</th>
  54. <th>Browser</th>
  55. <th>Engine version</th>
  56. <th>CSS grade</th>
  57. <th style="width: 150px">Market share (%)</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <tr class="gradeX">
  62. <td>Trident</td>
  63. <td>
  64. Internet
  65. Explorer
  66. 4.0
  67. </td>
  68. <td class="center">4</td>
  69. <td class="center">X</td>
  70. <td class="center">0.01</td>
  71. </tr>
  72. <tr class="gradeC">
  73. <td>Trident</td>
  74. <td>Internet
  75. Explorer 5.0</td>
  76. <td class="center">5</td>
  77. <td class="center">C</td>
  78. <td class="center">0.1</td>
  79. </tr>
  80. <tr class="gradeA">
  81. <td>Trident</td>
  82. <td>Internet
  83. Explorer 5.5</td>
  84. <td class="center">5.5</td>
  85. <td class="center">A</td>
  86. <td class="center">0.5</td>
  87. </tr>
  88. <tr class="gradeA">
  89. <td>Trident</td>
  90. <td>Internet
  91. Explorer 6</td>
  92. <td class="center">6</td>
  93. <td class="center">A</td>
  94. <td class="center">36</td>
  95. </tr>
  96. <tr class="gradeA">
  97. <td>Trident</td>
  98. <td>Internet Explorer 7</td>
  99. <td class="center">7</td>
  100. <td class="center">A</td>
  101. <td class="center">41</td>
  102. </tr>
  103. <tr class="gradeA">
  104. <td>Trident</td>
  105. <td>AOL browser (AOL desktop)</td>
  106. <td class="center">6</td>
  107. <td class="center">A</td>
  108. <td class="center">1</td>
  109. </tr>
  110. <tr class="gradeA">
  111. <td>Gecko</td>
  112. <td>Firefox 1.0</td>
  113. <td class="center">1.7</td>
  114. <td class="center">A</td>
  115. <td class="center">0.1</td>
  116. </tr>
  117. <tr class="gradeA">
  118. <td>Gecko</td>
  119. <td>Firefox 1.5</td>
  120. <td class="center">1.8</td>
  121. <td class="center">A</td>
  122. <td class="center">0.5</td>
  123. </tr>
  124. <tr class="gradeA">
  125. <td>Gecko</td>
  126. <td>Firefox 2.0</td>
  127. <td class="center">1.8</td>
  128. <td class="center">A</td>
  129. <td class="center">7</td>
  130. </tr>
  131. <tr class="gradeA">
  132. <td>Gecko</td>
  133. <td>Firefox 3.0</td>
  134. <td class="center">1.9</td>
  135. <td class="center">A</td>
  136. <td class="center">9</td>
  137. </tr>
  138. <tr class="gradeA">
  139. <td>Gecko</td>
  140. <td>Camino 1.0</td>
  141. <td class="center">1.8</td>
  142. <td class="center">A</td>
  143. <td class="center">0.01</td>
  144. </tr>
  145. <tr class="gradeA">
  146. <td>Gecko</td>
  147. <td>Camino 1.5</td>
  148. <td class="center">1.8</td>
  149. <td class="center">A</td>
  150. <td class="center">0.01</td>
  151. </tr>
  152. <tr class="gradeA">
  153. <td>Gecko</td>
  154. <td>Netscape 7.2</td>
  155. <td class="center">1.7</td>
  156. <td class="center">A</td>
  157. <td class="center">0.01</td>
  158. </tr>
  159. <tr class="gradeA">
  160. <td>Gecko</td>
  161. <td>Netscape Browser 8</td>
  162. <td class="center">1.7</td>
  163. <td class="center">A</td>
  164. <td class="center">0.01</td>
  165. </tr>
  166. <tr class="gradeA">
  167. <td>Gecko</td>
  168. <td>Netscape Navigator 9</td>
  169. <td class="center">1.8</td>
  170. <td class="center">A</td>
  171. <td class="center">0.01</td>
  172. </tr>
  173. <tr class="gradeA">
  174. <td>Gecko</td>
  175. <td>Mozilla 1.0</td>
  176. <td class="center">1</td>
  177. <td class="center">A</td>
  178. <td class="center">0.01</td>
  179. </tr>
  180. <tr class="gradeA">
  181. <td>Gecko</td>
  182. <td>Mozilla 1.1</td>
  183. <td class="center">1.1</td>
  184. <td class="center">A</td>
  185. <td class="center">0.01</td>
  186. </tr>
  187. <tr class="gradeA">
  188. <td>Gecko</td>
  189. <td>Mozilla 1.2</td>
  190. <td class="center">1.2</td>
  191. <td class="center">A</td>
  192. <td class="center">0.01</td>
  193. </tr>
  194. <tr class="gradeA">
  195. <td>Gecko</td>
  196. <td>Mozilla 1.3</td>
  197. <td class="center">1.3</td>
  198. <td class="center">A</td>
  199. <td class="center">0.01</td>
  200. </tr>
  201. <tr class="gradeA">
  202. <td>Gecko</td>
  203. <td>Mozilla 1.4</td>
  204. <td class="center">1.4</td>
  205. <td class="center">A</td>
  206. <td class="center">0.01</td>
  207. </tr>
  208. <tr class="gradeA">
  209. <td>Gecko</td>
  210. <td>Mozilla 1.5</td>
  211. <td class="center">1.5</td>
  212. <td class="center">A</td>
  213. <td class="center">0.01</td>
  214. </tr>
  215. <tr class="gradeA">
  216. <td>Gecko</td>
  217. <td>Mozilla 1.6</td>
  218. <td class="center">1.6</td>
  219. <td class="center">A</td>
  220. <td class="center">0.01</td>
  221. </tr>
  222. <tr class="gradeA">
  223. <td>Gecko</td>
  224. <td>Mozilla 1.7</td>
  225. <td class="center">1.7</td>
  226. <td class="center">A</td>
  227. <td class="center">0.01</td>
  228. </tr>
  229. <tr class="gradeA">
  230. <td>Gecko</td>
  231. <td>Mozilla 1.8</td>
  232. <td class="center">1.8</td>
  233. <td class="center">A</td>
  234. <td class="center">0.01</td>
  235. </tr>
  236. <tr class="gradeA">
  237. <td>Gecko</td>
  238. <td>Seamonkey 1.1</td>
  239. <td class="center">1.8</td>
  240. <td class="center">A</td>
  241. <td class="center">0.01</td>
  242. </tr>
  243. <tr class="gradeA">
  244. <td>Gecko</td>
  245. <td>Epiphany 2.20</td>
  246. <td class="center">1.8</td>
  247. <td class="center">A</td>
  248. <td class="center">0.01</td>
  249. </tr>
  250. <tr class="gradeA">
  251. <td>Webkit</td>
  252. <td>Safari 1.2</td>
  253. <td class="center">125.5</td>
  254. <td class="center">A</td>
  255. <td class="center">0.01</td>
  256. </tr>
  257. <tr class="gradeA">
  258. <td>Webkit</td>
  259. <td>Safari 1.3</td>
  260. <td class="center">312.8</td>
  261. <td class="center">A</td>
  262. <td class="center">0.01</td>
  263. </tr>
  264. <tr class="gradeA">
  265. <td>Webkit</td>
  266. <td>Safari 2.0</td>
  267. <td class="center">419.3</td>
  268. <td class="center">A</td>
  269. <td class="center">1</td>
  270. </tr>
  271. <tr class="gradeA">
  272. <td>Webkit</td>
  273. <td>Safari 3.0</td>
  274. <td class="center">522.1</td>
  275. <td class="center">A</td>
  276. <td class="center">2.2</td>
  277. </tr>
  278. <tr class="gradeA">
  279. <td>Webkit</td>
  280. <td>OmniWeb 5.5</td>
  281. <td class="center">420</td>
  282. <td class="center">A</td>
  283. <td class="center">0.01</td>
  284. </tr>
  285. <tr class="gradeA">
  286. <td>Webkit</td>
  287. <td>iPod Touch / iPhone</td>
  288. <td class="center">420.1</td>
  289. <td class="center">A</td>
  290. <td class="center">0.05</td>
  291. </tr>
  292. <tr class="gradeA">
  293. <td>Webkit</td>
  294. <td>S60</td>
  295. <td class="center">413</td>
  296. <td class="center">A</td>
  297. <td class="center">0.01</td>
  298. </tr>
  299. <tr class="gradeA">
  300. <td>Presto</td>
  301. <td>Opera 7.0</td>
  302. <td class="center">-</td>
  303. <td class="center">A</td>
  304. <td class="center">0.01</td>
  305. </tr>
  306. <tr class="gradeA">
  307. <td>Presto</td>
  308. <td>Opera 7.5</td>
  309. <td class="center">-</td>
  310. <td class="center">A</td>
  311. <td class="center">0.01</td>
  312. </tr>
  313. <tr class="gradeA">
  314. <td>Presto</td>
  315. <td>Opera 8.0</td>
  316. <td class="center">-</td>
  317. <td class="center">A</td>
  318. <td class="center">0.01</td>
  319. </tr>
  320. <tr class="gradeA">
  321. <td>Presto</td>
  322. <td>Opera 8.5</td>
  323. <td class="center">-</td>
  324. <td class="center">A</td>
  325. <td class="center">0.01</td>
  326. </tr>
  327. <tr class="gradeA">
  328. <td>Presto</td>
  329. <td>Opera 9.0</td>
  330. <td class="center">-</td>
  331. <td class="center">A</td>
  332. <td class="center">0.1</td>
  333. </tr>
  334. <tr class="gradeA">
  335. <td>Presto</td>
  336. <td>Opera 9.2</td>
  337. <td class="center">-</td>
  338. <td class="center">A</td>
  339. <td class="center">0.2</td>
  340. </tr>
  341. <tr class="gradeA">
  342. <td>Presto</td>
  343. <td>Opera 9.5</td>
  344. <td class="center">-</td>
  345. <td class="center">A</td>
  346. <td class="center">0.8</td>
  347. </tr>
  348. <tr class="gradeA">
  349. <td>Presto</td>
  350. <td>Opera for Wii</td>
  351. <td class="center">-</td>
  352. <td class="center">A</td>
  353. <td class="center">0.01</td>
  354. </tr>
  355. <tr class="gradeA">
  356. <td>Presto</td>
  357. <td>Nokia N800</td>
  358. <td class="center">-</td>
  359. <td class="center">A</td>
  360. <td class="center">0.01</td>
  361. </tr>
  362. <tr class="gradeA">
  363. <td>Presto</td>
  364. <td>Nintendo DS browser</td>
  365. <td class="center">8.5</td>
  366. <td class="center">C/A<sup>1</sup></td>
  367. <td class="center">0.01</td>
  368. </tr>
  369. <tr class="gradeC">
  370. <td>KHTML</td>
  371. <td>Konqureror 3.1</td>
  372. <td class="center">3.1</td>
  373. <td class="center">C</td>
  374. <td class="center">0.01</td>
  375. </tr>
  376. <tr class="gradeA">
  377. <td>KHTML</td>
  378. <td>Konqureror 3.3</td>
  379. <td class="center">3.3</td>
  380. <td class="center">A</td>
  381. <td class="center">0.01</td>
  382. </tr>
  383. <tr class="gradeA">
  384. <td>KHTML</td>
  385. <td>Konqureror 3.5</td>
  386. <td class="center">3.5</td>
  387. <td class="center">A</td>
  388. <td class="center">0.01</td>
  389. </tr>
  390. <tr class="gradeX">
  391. <td>Tasman</td>
  392. <td>Internet Explorer 4.5</td>
  393. <td class="center">-</td>
  394. <td class="center">X</td>
  395. <td class="center">0.01</td>
  396. </tr>
  397. <tr class="gradeC">
  398. <td>Tasman</td>
  399. <td>Internet Explorer 5.1</td>
  400. <td class="center">1</td>
  401. <td class="center">C</td>
  402. <td class="center">0.01</td>
  403. </tr>
  404. <tr class="gradeC">
  405. <td>Tasman</td>
  406. <td>Internet Explorer 5.2</td>
  407. <td class="center">1</td>
  408. <td class="center">C</td>
  409. <td class="center">0.01</td>
  410. </tr>
  411. <tr class="gradeA">
  412. <td>Misc</td>
  413. <td>NetFront 3.1</td>
  414. <td class="center">-</td>
  415. <td class="center">C</td>
  416. <td class="center">0.01</td>
  417. </tr>
  418. <tr class="gradeA">
  419. <td>Misc</td>
  420. <td>NetFront 3.4</td>
  421. <td class="center">-</td>
  422. <td class="center">A</td>
  423. <td class="center">0.01</td>
  424. </tr>
  425. <tr class="gradeX">
  426. <td>Misc</td>
  427. <td>Dillo 0.8</td>
  428. <td class="center">-</td>
  429. <td class="center">X</td>
  430. <td class="center">0.01</td>
  431. </tr>
  432. <tr class="gradeX">
  433. <td>Misc</td>
  434. <td>Links</td>
  435. <td class="center">-</td>
  436. <td class="center">X</td>
  437. <td class="center">0.01</td>
  438. </tr>
  439. <tr class="gradeX">
  440. <td>Misc</td>
  441. <td>Lynx</td>
  442. <td class="center">-</td>
  443. <td class="center">X</td>
  444. <td class="center">0.01</td>
  445. </tr>
  446. <tr class="gradeC">
  447. <td>Misc</td>
  448. <td>IE Mobile</td>
  449. <td class="center">-</td>
  450. <td class="center">C</td>
  451. <td class="center">0.01</td>
  452. </tr>
  453. <tr class="gradeC">
  454. <td>Misc</td>
  455. <td>PSP browser</td>
  456. <td class="center">-</td>
  457. <td class="center">C</td>
  458. <td class="center">0.01</td>
  459. </tr>
  460. <tr class="gradeU">
  461. <td>Other browsers</td>
  462. <td>All others</td>
  463. <td class="center">-</td>
  464. <td class="center">U</td>
  465. <td class="center">0.04</td>
  466. </tr>
  467. </tbody>
  468. <tfoot>
  469. <tr>
  470. <th style="text-align:right" colspan="4">Total:</th>
  471. <th></th>
  472. </tr>
  473. </tfoot>
  474. </table>
  475. </div>
  476. <div class="spacer"></div>
  477. <p class="space">Warning! The market share information given in this table is <b>fabricated</b> using a combination of (mild) judgement, the <a href="http://www.mail-archive.com/backstage@lists.bbc.co.uk/msg03899.html">BBC Browser Statistics</a> information and statistics from <a href="http://www.thecounter.com/stats/2008/August/browser.php">TheCounter.com</a>. THe lowest usage given to anyone browser is 0.01 for reasons of this example.</p>
  478. <h1>Initialisation code</h1>
  479. <pre class="brush: js;">$(document).ready(function() {
  480. $('#example').dataTable( {
  481. "fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
  482. /*
  483. * Calculate the total market share for all browsers in this table (ie inc. outside
  484. * the pagination)
  485. */
  486. var iTotalMarket = 0;
  487. for ( var i=0 ; i&lt;aaData.length ; i++ )
  488. {
  489. iTotalMarket += aaData[i][4]*1;
  490. }
  491. /* Calculate the market share for browsers on this page */
  492. var iPageMarket = 0;
  493. for ( var i=iStart ; i&lt;iEnd ; i++ )
  494. {
  495. iPageMarket += aaData[ aiDisplay[i] ][4]*1;
  496. }
  497. /* Modify the footer row to match what we want */
  498. var nCells = nRow.getElementsByTagName('th');
  499. nCells[1].innerHTML = parseInt(iPageMarket * 100)/100 +
  500. '% ('+ parseInt(iTotalMarket * 100)/100 +'% total)';
  501. }
  502. } );
  503. } );</pre>
  504. <style type="text/css">
  505. @import "../examples_support/syntax/css/shCore.css";
  506. </style>
  507. <script type="text/javascript" language="javascript" src="../examples_support/syntax/js/shCore.js"></script>
  508. <h1>Other examples</h1>
  509. <div class="demo_links">
  510. <h2>Basic initialisation</h2>
  511. <ul>
  512. <li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
  513. <li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
  514. <li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
  515. <li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
  516. <li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
  517. <li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
  518. <li><a href="../basic_init/complex_header.html">Complex headers - grouping with colspan</a></li>
  519. <li><a href="../basic_init/dom.html">DOM positioning</a></li>
  520. <li><a href="../basic_init/flexible_width.html">Flexible table width</a></li>
  521. <li><a href="../basic_init/state_save.html">State saving</a></li>
  522. <li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
  523. <li>Scrolling: <br>
  524. <a href="../basic_init/scroll_x.html">Horizontal</a> /
  525. <a href="../basic_init/scroll_y.html">Vertical</a> /
  526. <a href="../basic_init/scroll_xy.html">Both</a> /
  527. <a href="../basic_init/scroll_y_theme.html">Themed</a> /
  528. <a href="../basic_init/scroll_y_infinite.html">Infinite</a>
  529. </li>
  530. <li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
  531. <li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
  532. </ul>
  533. <h2>Advanced initialisation</h2>
  534. <ul>
  535. <li>Events: <br>
  536. <a href="../advanced_init/events_live.html">Live events</a> /
  537. <a href="../advanced_init/events_pre_init.html">Pre-init</a> /
  538. <a href="../advanced_init/events_post_init.html">Post-init</a>
  539. </li>
  540. <li><a href="../advanced_init/column_render.html">Column rendering</a></li>
  541. <li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
  542. <li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
  543. <li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
  544. <li><a href="../advanced_init/complex_header.html">Complex headers and hidden columns</a></li>
  545. <li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
  546. <li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
  547. <li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
  548. <li><a href="../advanced_init/row_callback.html">Row callback</a></li>
  549. <li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
  550. <li><a href="../advanced_init/sorting_control.html">Control sorting direction of columns</a></li>
  551. <li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
  552. <li><a href="../advanced_init/defaults.html">Setting defaults</a></li>
  553. <li><a href="../advanced_init/localstorage.html">State saving with localStorage</a></li>
  554. <li><a href="../advanced_init/dt_events.html">Custom events</a></li>
  555. </ul>
  556. <h2>API</h2>
  557. <ul>
  558. <li><a href="../api/add_row.html">Dynamically add a new row</a></li>
  559. <li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
  560. <li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
  561. <li><a href="../api/highlight.html">Highlight rows and columns</a></li>
  562. <li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
  563. <li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
  564. <li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
  565. <li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
  566. <li><a href="../api/form.html">Submit form with elements in table</a></li>
  567. <li><a href="../api/counter_column.html">Index column (static number column)</a></li>
  568. <li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
  569. <li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
  570. <li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
  571. <li><a href="../api/regex.html">Regular expression filtering</a></li>
  572. </ul>
  573. </div>
  574. <div class="demo_links">
  575. <h2>Data sources</h2>
  576. <ul>
  577. <li><a href="../data_sources/dom.html">DOM</a></li>
  578. <li><a href="../data_sources/js_array.html">Javascript array</a></li>
  579. <li><a href="../data_sources/ajax.html">Ajax source</a></li>
  580. <li><a href="../data_sources/server_side.html">Server side processing</a></li>
  581. </ul>
  582. <h2>Server-side processing</h2>
  583. <ul>
  584. <li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
  585. <li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
  586. <li><a href="../server_side/post.html">Use HTTP POST</a></li>
  587. <li><a href="../server_side/ids.html">Automatic addition of IDs and classes to rows</a></li>
  588. <li><a href="../server_side/object_data.html">Reading table data from objects</a></li>
  589. <li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
  590. <li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
  591. <li><a href="../server_side/jsonp.html">JSONP for a cross domain data source</a></li>
  592. <li><a href="../server_side/editable.html">jEditable integration with DataTables</a></li>
  593. <li><a href="../server_side/defer_loading.html">Deferred loading of Ajax data</a></li>
  594. <li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
  595. </ul>
  596. <h2>Ajax data source</h2>
  597. <ul>
  598. <li><a href="../ajax/ajax.html">Ajax sourced data (array of arrays)</a></li>
  599. <li><a href="../ajax/objects.html">Ajax sourced data (array of objects)</a></li>
  600. <li><a href="../ajax/defer_render.html">Deferred DOM creation for extra speed</a></li>
  601. <li><a href="../ajax/null_data_source.html">Empty data source columns</a></li>
  602. <li><a href="../ajax/custom_data_property.html">Use a data source other than aaData (the default)</a></li>
  603. <li><a href="../ajax/objects_subarrays.html">Read column data from sub-arrays</a></li>
  604. <li><a href="../ajax/deep.html">Read column data from deeply nested properties</a></li>
  605. </ul>
  606. <h2>Plug-ins</h2>
  607. <ul>
  608. <li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
  609. <li><a href="../plug-ins/sorting_plugin.html">Sorting and automatic type detection</a></li>
  610. <li><a href="../plug-ins/sorting_sType.html">Sorting without automatic type detection</a></li>
  611. <li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
  612. <li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
  613. <li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
  614. <li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
  615. </ul>
  616. </div>
  617. <div id="footer" class="clear" style="text-align:center;">
  618. <p>
  619. Please refer to the <a href="http://www.datatables.net/usage">DataTables documentation</a> for full information about its API properties and methods.<br>
  620. Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.
  621. </p>
  622. <span style="font-size:10px;">
  623. DataTables designed and created by <a href="http://www.sprymedia.co.uk">Allan Jardine</a> &copy; 2007-2011<br>
  624. DataTables is dual licensed under the <a href="http://www.datatables.net/license_gpl2">GPL v2 license</a> or a <a href="http://www.datatables.net/license_bsd">BSD (3-point) license</a>.
  625. </span>
  626. </div>
  627. </div>
  628. </body>
  629. </html>