I have an assignment brief for Uni which states that we must use AJAX and JSON to retrieve "stored" form data for a booking. It explicitly states that For this assignment it is not necessary to submit the form back to the server.
I had thought of using local web storage to save the form data but I'd likely get marked down for not showing use of AJAX/JSON. The other alternative would have been if javascript could have filesystem access (not using nodejs), but it doesn't...
So, from the brief below, how would you go about showing off AJAX/JSON features for storage/retrieval without using a back end server?
This assignment is focused on learning jQuery (but not including plugins or frameworks such as Bootstrap, Foundation or similar) and building components into a rich internet application (i.e. a single web page application) that demonstrates appropriate features of jQuery and how to include AJAX and JSON data.
You are to develop a web page to help a traveller organise the accommodation arrangements for a short city break and allow the person to review their ‘saved’ booking. The aim is to demonstrate that you can retrieve the booking information for the person and display all the appropriate fields with the returned JSON data into the form. You should allow the user to amend the form data and write the code to validate the fields in the client browser. For this assignment it is not necessary to submit the form back to the server. You should include a ‘Terms & Conditions’ cookie to note a new and returning user to their saved quotation.
Cheers Dave