How do I create an editable table on a web page?

  • 0
    I need to organize a web page to which data is loaded into a table from the database and where I can change them. I am writing simple scripts in python. I was able to organize the output of a data table from a sqlite3 database to a page created using Flask. I don't understand how to organize the addition of new rows to the database by conventionally clicking on the "+" sign in the table.
    Python Jackson Haynes, May 6, 2020

  • 5 Answers
  • 0
    pressing + creates an object that you fill with data

    send the command POST / api / users to the server

    get id

    each time you navigate to a new column, call PATCH / api / users
    Anonymous

  • 0
    When you click on the + button, make sure that the form (tag) with the table fields is rendered (this is done using javascript), well, add the form submit button. In short, read about the html form.
    Anonymous

  • 0
    How can I help you? Take Django and its tutorial and go for it. Throw Flask into a corner until you learn to program.
    Alexandra Saunders

  • 0
    By clicking on + using JS, add tr and td to the page, inside the field cells as in the form, then when you click the Save button, the data from this form is sent to the database. What is the problem then?
    Anonymous

  • 0
    https://www.datatables.net/ I think this is what you need
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!