CSCI 242 Homework 7

Purpose

Write a program using JSONP.

Due dates

This assignment must be completed by 11:00 PM on Wednesday, 14 March.

The task

Modify your Homework 6 solution, which used JSON, to use JSONP. In Homework 6 the JSON was generated by the CGI script http://www.cs.unca.edu/brock/classes/Spring2012/242/lectlabs/examples/courses.cgi. In this homework the JSONP will generated by the CGI script http://www.cs.unca.edu/brock/classes/Spring2012/242/lectlabs/examples/coursesp.cgi.

By default, the callback function will be named updateCourses, but you can change this by appending the obvious query string, as in http://www.cs.unca.edu/brock/classes/Spring2012/242/lectlabs/examples/coursesp.cgi?callback=marvelousStuff.

This isn’t hard. Just follow the instructions of Chapter 6 of the textbook.

Store your page so it can be accessed by the following URL.