The Javascript shown below is used to initialise the table shown in this
example:
$(document).ready(function() {
- $('#example').dataTable();
+ var oTable = $('#example').dataTable( {
+ "fnInitComplete" : function () {
+ $('table.dataTable td').click(function() {
+ var position=oTable.fnGetPosition(this);
+ alert("Row is "+position[0]);
+ });
+ }
+ } );
} );
In addition to the above code, the following Javascript library files are loaded for use in this
diff --git a/examples/data_sources/ajax.html b/examples/data_sources/ajax.html
index ca678032..4a3d78f2 100644
--- a/examples/data_sources/ajax.html
+++ b/examples/data_sources/ajax.html
@@ -3,6 +3,7 @@
+
DataTables example - Ajax sourced data
diff --git a/examples/data_sources/dom.html b/examples/data_sources/dom.html
index 1184d070..843f5a61 100644
--- a/examples/data_sources/dom.html
+++ b/examples/data_sources/dom.html
@@ -3,6 +3,7 @@
+
DataTables example - HTML (DOM) sourced data
diff --git a/examples/data_sources/js_array.html b/examples/data_sources/js_array.html
index 4361cf5a..dd078adc 100644
--- a/examples/data_sources/js_array.html
+++ b/examples/data_sources/js_array.html
@@ -3,6 +3,7 @@
+
DataTables example - Javascript sourced data
diff --git a/examples/data_sources/server_side.html b/examples/data_sources/server_side.html
index 55046f74..c60ca030 100644
--- a/examples/data_sources/server_side.html
+++ b/examples/data_sources/server_side.html
@@ -3,6 +3,7 @@
+
DataTables example - Server-side processing
diff --git a/examples/plug-ins/api.html b/examples/plug-ins/api.html
index ea318ca7..96cd05f2 100644
--- a/examples/plug-ins/api.html
+++ b/examples/plug-ins/api.html
@@ -3,6 +3,7 @@
+
DataTables example - API plug-in methods
diff --git a/examples/plug-ins/dom_sort.html b/examples/plug-ins/dom_sort.html
index 9e90e07d..e0dee8b9 100644
--- a/examples/plug-ins/dom_sort.html
+++ b/examples/plug-ins/dom_sort.html
@@ -3,6 +3,7 @@
+
DataTables example - Live DOM ordering
diff --git a/examples/plug-ins/range_filtering.html b/examples/plug-ins/range_filtering.html
index 97183b18..cbbf8038 100644
--- a/examples/plug-ins/range_filtering.html
+++ b/examples/plug-ins/range_filtering.html
@@ -3,6 +3,7 @@
+
DataTables example - Custom filtering - range search
diff --git a/examples/plug-ins/sorting_auto.html b/examples/plug-ins/sorting_auto.html
index 1e9d3140..9d73fd15 100644
--- a/examples/plug-ins/sorting_auto.html
+++ b/examples/plug-ins/sorting_auto.html
@@ -3,6 +3,7 @@
+
DataTables example - Ordering plug-ins (with type detection)
diff --git a/examples/plug-ins/sorting_manual.html b/examples/plug-ins/sorting_manual.html
index 7201d6ee..70659039 100644
--- a/examples/plug-ins/sorting_manual.html
+++ b/examples/plug-ins/sorting_manual.html
@@ -3,6 +3,7 @@
+
DataTables example - Ordering plug-ins (no type detection)
diff --git a/examples/server_side/custom_vars.html b/examples/server_side/custom_vars.html
index 48405191..f986d886 100644
--- a/examples/server_side/custom_vars.html
+++ b/examples/server_side/custom_vars.html
@@ -3,6 +3,7 @@
+
DataTables example - Custom HTTP variables
diff --git a/examples/server_side/defer_loading.html b/examples/server_side/defer_loading.html
index 6b0bb416..cff84e21 100644
--- a/examples/server_side/defer_loading.html
+++ b/examples/server_side/defer_loading.html
@@ -3,6 +3,7 @@
+
DataTables example - Deferred loading of data
diff --git a/examples/server_side/ids.html b/examples/server_side/ids.html
index df012dfe..70570a9c 100644
--- a/examples/server_side/ids.html
+++ b/examples/server_side/ids.html
@@ -3,6 +3,7 @@
+
DataTables example - Automatic addition of row ID attributes
diff --git a/examples/server_side/jsonp.html b/examples/server_side/jsonp.html
index c3f5a554..8c6e73a1 100644
--- a/examples/server_side/jsonp.html
+++ b/examples/server_side/jsonp.html
@@ -3,6 +3,7 @@
+
DataTables example - JSONP data source for remote domains
diff --git a/examples/server_side/object_data.html b/examples/server_side/object_data.html
index 0e39c61f..bce9d681 100644
--- a/examples/server_side/object_data.html
+++ b/examples/server_side/object_data.html
@@ -3,6 +3,7 @@
+
DataTables example - Object data source
diff --git a/examples/server_side/pipeline.html b/examples/server_side/pipeline.html
index adccaa54..54826598 100644
--- a/examples/server_side/pipeline.html
+++ b/examples/server_side/pipeline.html
@@ -3,6 +3,7 @@
+
DataTables example - Pipelining data to reduce Ajax calls for paging
diff --git a/examples/server_side/post.html b/examples/server_side/post.html
index 7ce23bff..b5767fe2 100644
--- a/examples/server_side/post.html
+++ b/examples/server_side/post.html
@@ -3,6 +3,7 @@
+
DataTables example - POST data
diff --git a/examples/server_side/row_details.html b/examples/server_side/row_details.html
index 9a2b0957..648f960b 100644
--- a/examples/server_side/row_details.html
+++ b/examples/server_side/row_details.html
@@ -3,6 +3,7 @@
+
DataTables example - Row details
diff --git a/examples/server_side/select_rows.html b/examples/server_side/select_rows.html
index db56fb04..5f9c2b66 100644
--- a/examples/server_side/select_rows.html
+++ b/examples/server_side/select_rows.html
@@ -3,6 +3,7 @@
+
DataTables example - Row selection
diff --git a/examples/server_side/simple.html b/examples/server_side/simple.html
index 126f8f38..a3d6cb8e 100644
--- a/examples/server_side/simple.html
+++ b/examples/server_side/simple.html
@@ -3,6 +3,7 @@
+
DataTables example - Server-side processing
diff --git a/examples/styling/bootstrap.html b/examples/styling/bootstrap.html
index 6a229ca0..60742092 100644
--- a/examples/styling/bootstrap.html
+++ b/examples/styling/bootstrap.html
@@ -3,6 +3,7 @@
+
DataTables example - Bootstrap
diff --git a/examples/styling/cell-border.html b/examples/styling/cell-border.html
index fec91b43..53fd5032 100644
--- a/examples/styling/cell-border.html
+++ b/examples/styling/cell-border.html
@@ -3,6 +3,7 @@
+
DataTables example - Base style - cell borders
diff --git a/examples/styling/display.html b/examples/styling/display.html
index 42f410a6..47121fb4 100644
--- a/examples/styling/display.html
+++ b/examples/styling/display.html
@@ -3,6 +3,7 @@
+
DataTables example - Base style
diff --git a/examples/styling/foundation.html b/examples/styling/foundation.html
index e02c17c1..035ce675 100644
--- a/examples/styling/foundation.html
+++ b/examples/styling/foundation.html
@@ -3,6 +3,7 @@
+
DataTables example - Foundation
+
DataTables example - Base style - hover
diff --git a/examples/styling/jqueryUI.html b/examples/styling/jqueryUI.html
index f9e909d1..7858f98e 100644
--- a/examples/styling/jqueryUI.html
+++ b/examples/styling/jqueryUI.html
@@ -3,6 +3,7 @@
+
DataTables example - jQuery UI ThemeRoller
diff --git a/examples/styling/no-classes.html b/examples/styling/no-classes.html
index c6385091..79a0adc4 100644
--- a/examples/styling/no-classes.html
+++ b/examples/styling/no-classes.html
@@ -3,6 +3,7 @@
+
DataTables example - Base style - no styling classes
diff --git a/examples/styling/order-column.html b/examples/styling/order-column.html
index 2f59f50a..8d6a9448 100644
--- a/examples/styling/order-column.html
+++ b/examples/styling/order-column.html
@@ -3,6 +3,7 @@
+
DataTables example - Base style - order-column
diff --git a/examples/styling/row-border.html b/examples/styling/row-border.html
index 372fad93..016797cf 100644
--- a/examples/styling/row-border.html
+++ b/examples/styling/row-border.html
@@ -3,6 +3,7 @@
+
DataTables example - Base style - row borders
diff --git a/examples/styling/stripe.html b/examples/styling/stripe.html
index 09aca48b..a9f8835a 100644
--- a/examples/styling/stripe.html
+++ b/examples/styling/stripe.html
@@ -3,6 +3,7 @@
+
DataTables example - Base style - stripe