Initialising table with sAjaxSource error

Initialising table with sAjaxSource error

manesh.mistrymanesh.mistry Posts: 4Questions: 0Answers: 0
edited June 2010 in General
Hi,

Have successfully used datatables but have found a problem when the page is re-loaded whilst the initial load is still in progress with Google Chrome or Firefox. It is fine with IE. Basically, if the page is interrupted, the error is:

DataTables warning: JSON Data from the server failed to load or be parsed. This is most likely to be caused by a JSON formatting error.

[code]
oTable = $('#example').dataTable({
"bSortClasses": false,
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bProcessing": true,
"sAjaxSource": "/Home/DataTables",
"iDisplayLength": 20,
"aaSorting": [[3, "desc"]],
"aoColumns": [
null,
null,
null,
null,
null,
null,
null ]
});
[/code]

I suspect is need to switch from sAjaxSource to GetJSON() but not clear how to implement it. Can you help please?

Thanks,

M
This discussion has been closed.