I currently have a web-page built in flask where I am selecting data from a mysql database.
I am going to use Javascript (probably inline-edit) to allow the user to edit some text on the web-page.
When the user leaves edit mode, I am going to use ajax to update the table in the database.
However this data will also be within a form, where there will be a submit button and when this is pressed it will run a query that inserts the data into a new table in the database.
My question is;
Will the AJAX inlin-edit function have updated the data (run before the form submit) in the current table before the form submit to the new table as I want the newly edited data in the new table.
I was originally concerned about the asynchronous part but read here that this is not to be worried about.
I am also unsure whether the new data will be available in the new table from the db.