ajax.url().load()

Since: DataTables 1.10

Load data from the newly set data source URL.

Description

Trigger a load of an Ajax data source when a URl has been set using the ajax.url() method.

Note ajax.url() must be used a setter to set the URL, not a getter for this load() method to be available in the returned object.

Type

function ajax.url().load( callback, resetPaging )

Parameters:
Returns:

DataTables.Api instance

Example

Set the Ajax URL and load the data from the new source immediately:

var table = $('#example').DataTable( {
	ajax: "data.json"
} );

table.ajax.url( 'newData.json' ).load();

Related

The following options are directly related and may also be useful in your application development.