Indiana University School of Informatics
Search
Informatics Home     Course Homepages
I450 Home
JavaScript Home
Objectives
Assignment
Due Date

 


Informatics I450: Designing and Developing an Information System

Objectives: 

The objective of this assignment is for the student to demonstrate a reasonable level of comfort with basic JavaScript syntax and thereby complete the I450 JavaScript technology seminar requirements.

Assignment 

Please answer the following questions:

  1. Where does any JavaScript that outputs anything to the page need to be located?
  2. Where do most JavaScript function declarations go?
  3. Write the JavaScript for a function named isYes that takes in a string and compares it to the value 'yes' and returns true or false.
  4. Write the JavaScript code for inputing a user's birthplace and storing it in a new variable called city.
  5. Given the code from #4 and the value of city is 'Bloomington', write the JavaScript code that would print out to the screen"Bloomington is a great town!" with Bloomington an email link to 'bloomington@indiana.edu'.
You must also write a new xhtml page that takes user input to dynamically change at least 2 aspects of the page. Use the echoecho.com document reference if you need to find document properties. You may not change the title, as we have already done that as an excercise in class.

Post your page on a server of your choice and submit the link to the W3C validation service to ensure that it does comply with XHTML strict requirements. Once it does comply, you must add the "XHTML Strict" image provided by the W3C validation service to the bottom of your page.

Turn in your answers and your URL in a text document to the JavaScript 1 assignment on Oncourse. Name the text file javascript.doc.

Due Date: 

This assignment is due by midnight on the 7th day following the date of the seminar session attended.
You will receive feedback on this assignment within a week after the due date.




Indiana University School of Informatics
http://www.informatics.indiana.edu/dgroth/Courses/i450/tech/javascript/assignment.asp
© Indiana University   |   Comments:
Page Last Modified: 1/23/2006, 9:08:51 AM