Using sAjaxSource does not fire an Ajax call

Using sAjaxSource does not fire an Ajax call

guyverxt9guyverxt9 Posts: 1Questions: 0Answers: 0
edited April 2013 in General
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.
This discussion has been closed.