Being a beginner in server side development, I am currently working on creating a database application for my company that will store links to all our marketing videos. Each entry consists of a URL (link to video), description, industry, and more.
So far, I have managed to set up the front end using HTML/JavaScript. By using a local XML source file, I have populated a list with video names and included text fields for all the properties of the video item.
Now, here comes my query: How should I go about updating the view after sending the form data (new entry) to the back end? Should I insert a new entry based on local data? Should I wait for the response from the server and then update the view based on local data? Or, should I wait for the response from the server and update the view based on the back end data? My main aim is to ensure that my view always accurately reflects the data state on the back end.
(The back end is Java / Google App Engine)