"No data available in table" in DataTables -


When I try to populate my table, I get a message, here is the simplified code.

  $ ("# showUsers"). ("Click", function () {$ .ajax ({url: $ ("# example"). $ ("# Output"). $ ("# Output"). DataTable ({"Aadata": data , "", "Ato column": ["sTitle": "movie", "amatapop": "movie": "name", "mdtopop": "name", "s default content": ""}, {"sTitle" , "sDefaultContent": ""}}})))}}}};});   

and

  & lt; Table id = "example" & gt; & Lt; Thead & gt; & Lt; Th & gt; Name & lt; / Th & gt; & Lt; Th & gt; Film & lt; / Th & gt; & Lt; / Thead & gt; & Lt; / Table & gt; Valid JSON has been specified as   

data

 class = "lang-js prettyprint-override">  [{" "Name": "donation", "movie": "amelie"}, {"name": "rob", "movie": "dongone"}]   

I read that Sometimes it messes with tables and headers and stuff, so I tried to remove & lt; thead & gt; from the definition of its table, but the result was the same problem It happened.

The funny thing is, if I change the "Aadata": the data With the "Aadata": plus Jasonson works itself. But I can not fill the required requirements by data DT.

Ajax Data comes from a node-mishyle module that is working properly.

If I change the data to < Code> data.responseText (I have previously shown that Jason has been shown) I got the warning unknown parameter from the data source for the row 'name' request 0 .

So it should be very easy for someone not so experienced Detatauth user so thank you in advance. Somehow I can not solve it.


Resolve

MySQL response comes with a data.responseJSON which is a working format that is payee give. Thank you.

To flag awnsered as a question

Solve.

The mysql response comes with a data. Thanks Json which is a work format to give to Aadata thanks.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -