Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 124

reload data after clicking button

$
0
0
I load data by default like this

[code]$('.datatable').dataTable({
"sPaginationType": "bs_full",
"bProcessing" : true,
"sAjaxSource" : "loadusers.html",
"sAjaxDataProp" : "test"
});[/code]

My table on html page looks like this
[code]

Name
Surname
Username



[/code]


Server answer looks like this
[code] return "{ \"test\": [ "
+ "[ \"name1\", \"surname1\", \"username1\"],"
+ "[ \"name2\", \"surname2\", \"username3\"],"
+ "[ \"name2\", \"surname2\", \"username3\"]"
+ "] }"; [/code]


But how to load data by clicking button on the page? For example by clicking button
[code]Clicker[/code]

Viewing all articles
Browse latest Browse all 124

Trending Articles