How to send request in JSON format with datatables editor

How to send request in JSON format with datatables editor

ankit_perceptiveankit_perceptive Posts: 4Questions: 1Answers: 0

Sir,
I am new to datatables editor. In it, I successfully get rows of data from server(which sends data in JSON format). When I edit a row, the data being sent to server is in URL parameters form. Can I send that data in JSON format? Is there any option which converts the URL parameters into JSON?

Thanks for your support

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 61,710Questions: 1Answers: 10,103 Site admin
    Answer ✓

    In Editor you can use the ajax option to provide a custom Ajax function. You can send only HTTP parameters over HTTP only of course, but you could JSON stringify the object first if you wanted to.

    Allan

  • ankit_perceptiveankit_perceptive Posts: 4Questions: 1Answers: 0

    Sir, Thanks for your answer.

  • ankit_perceptiveankit_perceptive Posts: 4Questions: 1Answers: 0
    edited July 2014

    Sir, Could you please help me with this custom Ajax Function.

  • allanallan Posts: 61,710Questions: 1Answers: 10,103 Site admin
    Answer ✓

    The last example (at the bottom of the ajax page) shows an example of how to use the ajax option as a function.

    Allan

  • ankit_perceptiveankit_perceptive Posts: 4Questions: 1Answers: 0

    Thanks Sir. It's exactly what I was looking for.

This discussion has been closed.