Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

Using sAjaxSource does not fire an Ajax call

$
0
0
Hi

I've been struggling with this for a day now, and I can't understand why it won't work.

This is my initialization code:

var api_url = "/api/list.php?r="+resource;

$('#list-table').dataTable( {
"sAjaxSource:": api_url,
"bProcessing": true,
"bJQueryUI": true,
"bDeferRender": true,
"aoColumns": [{"mData": "pr_id64"},
{"mData": "pr_id32"},
{"mData": "pr_name"},
{"mData": "pr_flags"}]
} );



The problem is that the Ajax call to sAjaxSource is never made, unless I set bServerSide to true (which I don't want to do, as I then need to take care of all the sorting and ordering behaviour).

Can someone please help, as I'm about to douse my desk in petrol and set everything alight.

Viewing all articles
Browse latest Browse all 82115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>