Send Form Inputs with Ajax to Server in JSON format
Send Form Inputs with Ajax to Server in JSON format
faivre
Posts: 1Questions: 1Answers: 0
Hello,
I’m working from this example:
https://datatables.net/examples/api/form.html
It states that “an Ajax call to the server with the form data could easily be performed.” I’m new to DataTables and Ajax and would love some help on this one. I’m looking to send the input in JSON format. For what it is worth, I’m sending this to a Flask route.
Thanks in advance,
Brian
This discussion has been closed.
Answers
Hi @faivre ,
Yep, it's just a case of sending the input data to the server in the format you want - this page here may be useful, it shows how to create Ajax submit calls. If you're doing a lot of updates, it would be worth considering the Editor extension.
Cheers,
Colin