{hero}

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 as a setter to set the URL for the 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 = new DataTable('#myTable', {
	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.