I spent the whole week figuring out how to dynamically update the flask webpage. I found a tutorial on YouTube on how to dynamically update it using JSON.
Result: It was unsuccessful. When I tried implementing and manipulating the code to fit my use cases of updating the messages from the database, I learnt that it only allowed one 'element' on the page at once. I could only choose to dynamically update the webpage and not have any other functions on the same webpage.
I had a HTML form to submit any form of text from the webpage to act as a server console. I had to remove it as it was causing JSON errors. Only once I removed anything but the dynamically updating element did the errors stop.

Since the textbox to send commands from the webpage was a very crucial element to the project and should not be removed, I decided to abandon JSON instead in search for better ways to implement a dynamically updating element to the webpage.
Comentarios