How to send request in JSON format with datatables editor
How to send request in JSON format with datatables editor
 ankit_perceptive            
            
                Posts: 4Questions: 1Answers: 0
ankit_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:
This discussion has been closed.
            
Answers
In Editor you can use the
ajaxoption 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
Sir, Thanks for your answer.
Sir, Could you please help me with this custom Ajax Function.
The last example (at the bottom of the
ajaxpage) shows an example of how to use theajaxoption as a function.Allan
Thanks Sir. It's exactly what I was looking for.