Send Form Inputs with Ajax to Server in JSON format

Send Form Inputs with Ajax to Server in JSON format

faivrefaivre 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

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    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

This discussion has been closed.