DataTables logo DataTables

This site contains the legacy documentation for DataTables v1.9 and earlier for reference only.
DataTables 1.9 was End Of Life in 2014. Do not use it for new work.
The current release of DataTables can always be found on DataTables.net.
AutoFill example

Preamble

AutoFill provides a number of customisable callback functions so you can tailor it's actions to exactly what you need. This specific example shows fnCallback, which is fired when the mouse is released. Further documentation is below.

Live example

Information about each update will appear here.

Rendering engineBrowserPlatform(s)Engine versionCSS grade
Rendering engineBrowserPlatform(s)Engine versionCSS grade
Gecko Firefox 1.5 Win 98+ / OSX.2+ 1.8 A
Gecko Firefox 2.0 Win 98+ / OSX.2+ 1.8 A
Gecko Firefox 3.0 Win 2k+ / OSX.3+ 1.9 A
Gecko Camino 1.0 OSX.2+ 1.8 A
Gecko Camino 1.5 OSX.3+ 1.8 A
Gecko Netscape 7.2 Win 95+ / Mac OS 8.6-9.2 1.7 A
Gecko Netscape Browser 8 Win 98SE+ 1.7 A
Gecko Netscape Navigator 9 Win 98+ / OSX.2+ 1.8 A
Gecko Mozilla 1.0 Win 95+ / OSX.1+ 1 A
Gecko Mozilla 1.1 Win 95+ / OSX.1+ 1.1 A
Showing 1 to 10 of 57 entries

Examples

Initialisation code

$(document).ready( function () {
	var oTable = $('#example').dataTable();
	new AutoFill( oTable, {
		"aoColumnDefs": [ {
			"fnCallback": function ( ao ) {
				var n = document.getElementById('output');
				for ( var i=0, iLen=ao.length ; i<iLen ; i++ ) {
					n.innerHTML += "Update: old value: {"+
						ao[i].oldValue+"} - new value: {"+ao[i].newValue+"}<br>";
				}
				n.scrollTop = n.scrollHeight;
			},
			"aTargets": [ "_all" ]
		} ]
	} );
} );