Ajax Error

Ajax Error

pricejtpricejt Posts: 12Questions: 5Answers: 1

I am getting an ajax error using datatables. Just the generic error 7.
I validated my json and it tested correct. What am i missing.

{
    "data": [
        {
            "CaseName": "FirstTest",
            "ConfigId": "0460115a-3b29-4b85-81e7-dfba079b85cb",
            "PartNumber": "DetermineIfAttributeOnScreen",
            "Image": "?2/24/2016 11:02:27 PM",
            "Status": "",
            "Price": "0",
            "Comments": "",
            "Error": "",
            "LastRun": "2/24/2016 11:02:27 PM"
        }
    ]
}

Answers

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    What am i missing.

    Posting a link to a test case showing the issue so I can debug it please :-). Unfortunately I don't have enough information from the above to be able to determine what is going wrong. An error code 7 suggests that the response from the server is not a 2XX status.

    Allan

  • pricejtpricejt Posts: 12Questions: 5Answers: 1

    Alright i am not getting the same error but its not working in datatables live either.
    http://live.datatables.net/zibohaji/1/edit?html,css,js,output

    I had this working previously in version 1.9 so i am trying to upgrade.
    I pull my json data before calling datatables. Before i loaded my json object into the aaData parameter. I tried changing that to be just data and it displays a bunch of lines with no data on my side. In database live if just doesn't display anything.

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    Two immediate issues:

    1. When using data give it the array - so JSON.parse(...).data in the example
    2. The "columns." part of parameters such as columns.data is used to show that the property is nested in the columns array. Have a look at the examples in columns.data and the data manual page.

    http://live.datatables.net/zibohaji/2/edit

    Allan

This discussion has been closed.