This lab is worth 2 points.
<!doctype html> <html> <head> <title>Messages</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> // Complete this section... </script> </head> <body> <h1>Messages</h1> <div id="messages">Loading...</div> </body> </html>
Take a look at the example we did in class a week or so ago that loads JSON from a remote location via
XMLHttpRequest: https://github.com/tuftsdev/WebProgramming/blob/gh-pages/examples/ajax/messages.html. Your job is to rewrite the code but using jQuery to load the JSON and list messages inside the "messages"
div (without the "Loading..."). The behavior of your work shall be exactly the same as the example that uses
XMLHttpRequest. Your code should be very short.
index.html page on any modern web browser.
Each assignment and lab shall include a
README file that describes the work. This description must:
README.txt) or in Markdown (
README.md). Markdown is preferred. No other formats will be accepted. Please use all capital letters for
README file must be directly in the folder of the lab or assignment.
Commit and push your two files for this lab, the
index.html, to your private repo in a folder named