Question: (Urgent) Using an instance of the XMLHttpRequest object, you should query the server tmaserv.scem.westernsydney.edu.au with the ultimate aim of inserting data into the section tag

(Urgent)

Using an instance of the XMLHttpRequest object, you should query the server tmaserv.scem.westernsydney.edu.au with the ultimate aim of inserting data into the section tag of start.html. You should:

  1. Use the Do Exercise button to retrieve and store the JSON data from http://tmaserv.scem.westernsydney.edu.au/fruit.json into local storage WITHOUT displaying to the screen. This data contains the fruit names and descriptions.
  2. Continue the page used in the above question (Question 1) and create a second button. This button will run a second function (created by you) to read the information stored in the local storage. The information should then be displayed to the screen by inserting it into the section tag. The information should be displayed with the name being a heading and the description a paragraph.

You may add any attributes you wish to the HTML, however, your code must respect the rules for attributes.

HTML file to be used

Starting Point

Paragraph One.

Paragraph Two.

Paragraph Three.

Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!