MCCC CIS 177 - Markup Languages

Assignment 8

Add functionality with JavaScript 5 pts Due 11/19/03
Add the JavaScript functions as described for Monroe Public Library on pages 9.50 - 9.51 of your text. The assignment will be assessed as follows.
  • Proper coding in good form
  • Understanding of the DOM
  • Working JavaScript functions that jump to the correct URLs when users select them from a form
  • Please DO NOT print the Web page.
You may extract the files from the CD accompanying the text as described on page 9.51, copy them from MCCC's shared drive, or download them here.

Be sure to copy the files into your working drive and directory so you can edit and save them.

HINTS:


You need a function:

<script>
<!---Hide from older browsers
function jump_to_link(weblist) {
var url_number=weblist.selectedIndex;
location=weblist.options[url_number].value;
}
//Stop hiding --->
</script>


You need an "onChange" event handler for each select:

onchange="jump_to_link(this);"

And an inline javascript object/method for the option not linked to a URL so the current location reloads:

value="javascript:location.reload()"

Click here to access assignment upload area.

You must provide me with your real identity and a real email address. This is to ensure you receive proper credit for this assignment and so I can contact you if necessary.

First & Last Name:

Preferred Email Address:

So I can help you get the most out of this course, please rate this assignment.

Easy   Challenging   Difficult

Please feel free to share any comments or concerns you have.

 
©2003 Kathy Marrs All rights reserved.

Click here to close window