Mistake with json file and reload

Mistake with json file and reload

PhiPhi Posts: 1Questions: 1Answers: 0

Hello,

I'm sorry but I don't find where I do an error. I create a datatable and I would like reload it after a few time o after some events.
I create a json file with the informations necessary. I verify with JSONLint and it's OK. When I use reload(). I have a pop-up with a warning "Invalid JSON response".

The json file:
{"draw":0, "start":0, "lenght":-1, "columns": [{"data":"Date"},{"data":"field 1"},{"data": "field 2"},{"data": "field 3"},{"data": "field 4"},{"data": "field 5"},{"data": "field 6"},{"data": "field 7"},{"data": "field 8"},{"data": "field 9"},{"data": "field 10"},{"data": "field 11"},{"data": "field 12"}], "data" : [ {"field 1":"00/00/0000","field 2":"Test 1","field 3":" ;Test","field 4":" ","field 5":" ","field 6":" ","field 7":" ","field 8":" testi","field 9":" ","field 10":"test","field 11":" 2013","field 11":" ","field 12":" "}]}

The Jquery file:
$('body').on('click', ".actualiser", function(){ oTable.ajax.reload(); });

Thanks for your help,

Phi

This discussion has been closed.