Requested Unknown Parameter issue with demo

Requested Unknown Parameter issue with demo

JonBoyJonBoy Posts: 2Questions: 1Answers: 0

https://live.datatables.net/jehepoda/1/edit

The above code generates a 'Requested unknown parameter 'RequiredDate' for row 0, column 0.

I just can't see what I'm missing here, so any help much appreciated.

Thanks,
Jon

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 64,302Questions: 1Answers: 10,618 Site admin
    edited April 16 Answer ✓

    Hi Jon,

    You are passing in a string to data, so it doesn't have objects / properties, etc.

    Making it actually an object (remove the '), and then passing in the array of data to data allows it to work as expected: https://live.datatables.net/jehepoda/2/edit .

    Note in particular that while ajax will look for a data property in the returned JSON, the data option needs the array of data given to it.

    Allan

  • JonBoyJonBoy Posts: 2Questions: 1Answers: 0

    Sigh... Thank you very much, I knew it would be something very silly I was doing/missing.

Sign In or Register to comment.