jQuery with Flask sending data back to html template
Hi There. In your jQuery with Flask Tutorial you send back a message to the html template. How about sending multiple lists to refresh your html template, for example a table. How can you accomplish that? Thanks again for all the help. (I'm already using jinja to pass data to templates, populate and refresh (reload) pages.)
You must be logged in to post. Please login or register an account.
You can return back anything you want. It depends how big the table is, and what the data is. You can just send back a list of lists or something of that sort, and then iterate through it to build the table.
You can also build the table in Python, and literally return the HTML of a table to the javascript and render that (using |safe or it would be plaintext).
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.