end of class
5 exercise points)
in pairs is allowed on this lab.
1) For this exercise, you
are encouraged to use https://www.w3schools.com/js/js_ajax_intro.asp
On the server:
- cd into your public_html/210
- Type the command cp
(note the period at the end)
- The file has now been copied into your directoy.
For local editing and testing:
- Save the ExploreAJAX
file through your browser to your local machine
the ExploreAJAX file, make the following modifications.
Make them one at a time and make sure it works before you move on to
the next one. I should be able to modify the two files in my
directory and your program should behave appropriately.
the file so that when the button is clicked the right hand side of the
page contains the contents of the file found at:
the file so that immediately upon loading the page, the top of the page
has a banner inserted (above the table). The banner should
the contents of the file
- This one is not as
straightforward to find as the preceding item.
create two brand new files:
ii) A file called "weather.txt" that has either the word
"sunny" or the word "rain".
ii) A file calle ExploreAJAX-2.html
When this page is loaded, it should contain:
- an attractive "banner" at the top of the page
welcoming the user
button that says "check the weather". When pressed, the page
should display above the button either an image of the sun or of rain,
depending on what the "weather.txt" file says. Some sample images can
be found at:
modify the file above so that if it is sunny, a randomly selected sun
picture will appear. Each time the user clicks the button,
sun image should change.
Handin:Submit the checkoff sheet you are being handed in class AND publish the
files in someone's 210 directory.