Scroller example - server-side processing

Preamble

When using server-side processing, Scroller will wait a small amount of time to allow the scrolling to finish before requesting more data from the server (200mS by default). This prevents you from DoSing your own server! This example shows Scroller in action with a database of 10'000 records, although of course server-side processing can scale much larger if you require. In this example we also enable the loadingIndicator option of Scroller to show the end user what is happening when they scroll passed the currently loaded data.

Live example

ID First name Last name ZIP Country

Initialisation code

$(document).ready(function() {
	var oTable = $('#example').dataTable( {
		"sScrollY": "200px",
		"sAjaxSource": "media/data/server_processing.php",
		"bServerSide": true,
		"sDom": "frtiS",
		"oScroller": {
			"loadingIndicator": true
		}
	} );
} );

Other examples