Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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:
- 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.
- 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
Paragraph One.
Paragraph Two.
Paragraph Three.
Thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started