Ajax Error
Ajax Error
pricejt
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"
}
]
}
This discussion has been closed.
Answers
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
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.
Two immediate issues:
data
give it the array - soJSON.parse(...).data
in the examplecolumns.data
is used to show that the property is nested in thecolumns
array. Have a look at the examples incolumns.data
and the data manual page.http://live.datatables.net/zibohaji/2/edit
Allan