Assignment "Scripting"

Learning goals

After the assignment the student should:

Background: The purpose of the assignment is to illustrate client-side scripting. To this end the students explore three JavaScript widgets in some detail. The student is not required to learn syntactic details of JavaScript but should be able to look these up in the appropriate documentation. Make sure you have read the complete assignment, including the hints and tips, before you start.

The assignment

Your job is to adapt, with the help of a text editor such as jedit or emacs, the HTML document of the previous assignment and to make it more interactive. You can be as creative as you want, but the following features are required:

  1. Add, at the top of your page, a 500x500 pixel geographical map marking at least two spots on the earth that are special to you and/or your partner in your group. If users click the markers, a short text explaining why this point is special to you should appear. Make sure the map is appropriately zoomed in or out to show all your markers when the page is loaded in the browser.
  2. The HTML table(s) you created for the previous assignments should become sortable on all columns by clicking the table headers
  3. The background color of your page should be adaptable by the end-user, include a color picker control at the top of your page so he or she can do this easily.
  4. The HTML file with the answers to all the Lab questions so far should be extended to use the JavaScript libraries mentioned below. To this end, include URIs references to the appropriate CSS and JavaScript libraries in the head element of the HTML file. Use URIs refering to the original location on the Web, do not link to downloaded copied on your harddrive. Only submit your HTML file and CSS files, i.e. as you have done with the previous assignment. Do not submit files with third-party JavaScript libraries that you may have downloaded from the Web.
  5. You may also use JavaScript in the body element.

Hints and Tips

Submission details

Check the Blackboard site of the course for submission details.

Valid XHTML 1.0!