Bubble editing not working. Please contact system administrator error.

Bubble editing not working. Please contact system administrator error.

cranworthcranworth Posts: 20Questions: 10Answers: 0
edited August 2014 in Editor

I am trying to implement a bubble editor for my table from the example in the link.
https://editor.datatables.net/examples/inline-editing/simple.html

When edit is successfully committed on the server and the JSON is returned back to the Editor, the bubble edit modal window displays "An error has occurred - Please contact the system administrator"

As the above example (in the link) assumes that data are held in a relational database and my data comes from a CMS, I manually create the JSON response on successful edit. I cannot see anything glaringly wrong with the JSON I am responding back with:

{
"row": {
    "DT_RowId": "adfalkdjfkajfakjadf-kjfkajfkdjafdkj-30",
    "title": "some title",
    "created": "Aug 16, 2014",
    "document": "a-document-title",
    "authors": "",
    "tags": "some-tag"
 }
}

where my table has exactly those above columns.

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited August 2014

    The error you are seeing indicates that whatever data the server is returning, it is not valid JSON. What you have above looks valid, but the error suggests that there is something else being returned which is making it invalid.

    Are you able to link to the page so I can take a look?

    Regards,
    Allan

  • cranworthcranworth Posts: 20Questions: 10Answers: 0

    I have shared the link with you in a private message.

This discussion has been closed.