
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:
- Where does any JavaScript that outputs anything to the page need to be located?
- Where do most JavaScript function declarations go?
- 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.
- Write the JavaScript code for inputing a user's birthplace and storing
it in a new variable called city.
- 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.
|