First, copy or type this URL into your browser, and inspect the JSON data that is returned. Put your ZipCode (or
any other valid ZipCode, for that matter) in place of ZZZZZ in the URL:
The JSON-encoded data that are returned by this PHP page will be these object properties:
temp - The current temperature in degrees Fahrenheit for that ZipCode
city - City name for that ZipCode
If there are any errors detected by the PHP page, the JSON-encoded
error information will be these object properties:
error - a value of '1'
message - the error situation will be described.
Make an HTML page which uses a jQuery AJAX call to get this JSON data from the PHP page with the URL given above.
You may either hard-code (type in) the ZipCode that you want to get the temperature for, or you may get fancy and allow
the user to type in or select the ZipCode. It's up to you. Of course, I will give extra credit for fancy solutions.
Use other jQuery selectors and methods to display the returned temperature and city information in the body
of your HTML page. Again, I will give extra credit for fancy and/or beautiful solutions, but even a plain page which
is well presented will be acceptable.
If there are any errors detected by the PHP page, you may, if you wish, display the error
message in your page. You will know if there is an error because the two properties in the
returned object will be error and message.
Add a hypertext link to the index.html file that
is in your class folder. Make this hypertext link display the
html page that you made for this assignment.
Upload your file to your class folder. You will need to use an
FTP program to upload the files. You will find some general FTP
instructions on a page called "FTP Instructions".