Loading AJAX error

Loading AJAX error

gemingageminga Posts: 2Questions: 1Answers: 0

Here is a link: http://live.datatables.net/fafaguba/1/

I cannot get the Ajax to load and format two of the nested objects. The JSON is valid and after it fails it does at least count the records correctly.

I've read through the error code here but I don't understand it: http://datatables.net/tn/4

Can anyone help?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,269Questions: 26Answers: 4,765
    Answer ✓

    Looks like you need to change this:

                "columns": [
                    { "fastest": "nickname" },
                    { "fastest": "lap_time" }
                ]
    

    To this:

                "columns": [
                    { "data": "nickname" },
                    { "data": "lap_time" }
                ]
    

    You are to use the columns.data option. Datatables doesn't know what fastest is within the columns config.

    Kevin

  • gemingageminga Posts: 2Questions: 1Answers: 0

    Thanks a ton. It's working with that change.

This discussion has been closed.