Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35371

how to use ajax.url(''url").load() for post params

$
0
0

I am trying to use ajax.url('myurl').load() with post params.Since 'myurl' is a string I works well for get request.How can I apply the same to post?

Here is my datatable:
$('#example').dataTable( {
"ajax": { "url": "url", "type": "POST", "data":data } } ); } );

Everytime I reload the table ,i need to pass new data to the backend.

How can I achieve it by using ajax.url('myurl').load()?

Could anyone please point me with example.


Viewing all articles
Browse latest Browse all 35371

Trending Articles