A11: Cookies

On This Page


Overview

The main points of this assignment are to:

  • Validate form information
  • Use regular expressions

Specifications

Tutorial Exercises

  1. Complete the in-chapter tutorial exercises (step-by-step instructions to complete the case study) that are listed throughout chapter Tutorial 9. You must follow the steps exactly and turn in all the files to make it work correctly. This does NOT include the Review Assignment nor any Case Problems at the end of the chapter.

Cookies

For this project, you will create three separate pages using cookies as described below.

  1. Create a page named welcome.html with the following features:
    1. The page checks to see if a cookie named name exists
    2. If the cookie does not exist then the user is presented a greeting that does not use their name
    3. If the cookie does exist then the user is presented a greeting using their name as read from the cookie
    4. The page has links to the other two pages of this assignment
  2. Create a second page named register.html with the following features:
    1. Asks the user for their name
    2. Saves the user's name in a cookie with the name of name
    3. Automatically sends the user back to welcome.html after entering their name
  3. Create a third page named unregister.html with the following features:
    1. Deletes the name cookie
    2. Provides a link to return the user back to welcome.html
  4. Once you complete this page, test your JavaScript to ensure it works without error.

Other Specifications

  1. Complete a README.txt file following the instructions for homework.
  2. Zip your files and submit the zipped archive file to WebCT as explained in the section of this document: What to Turn In.

Extra Credit

This extra credit is worth 2 points.

  1. Complete Case Problem 4 of Tutorial 9 that starts on page JVS 522 of your textbook.
  2. Include the extra credit solution in your assignment zip file.

Make certain that your README.txt file lists any extra credit attempted.

Grading Criteria

The instructor will evaluate your assignment using the following criteria. Each criteria represents a specific achievement of your assignment and has a scoring guide. The scoring guide explains the possible scores you can receive.

Some scoring guides have a list of indicators. These indicators are a sign of meeting, or a symptom of not meeting, the specific criterion. Note that a single indicator may not always be reliable or appropriate in a given context. However, as a group, they show the condition of meeting the criterion.

For information on grading policies, including interpretation of scores, see the course information page.

Tutorial Exercises

  • 8: Demonstrates mastery of the assignment
    • Applies concepts from the lessons appropriately
    • Follows the steps exactly
    • Exercises perform correctly
    • No JavaScript errors encountered during operation
  • 6: Has all the major functionality expected of the assignment
    • Demonstrates many techniques from the lesson
    • May deviate from the specified steps in some way
    • Implementation seems more complicated than necessary.
    • May have one minor JavaScript warning or error
  • 4: Has much of the functionality expected of the assignment
    • Demonstrates some techniques from the lesson
    • Deviates from the specified steps in some way
    • Implementation seems excessively complicated.
    • May have JavaScript warnings or errors
    • Missing support files
  • 2: Serious functional problems but shows some effort and understanding
    • Follows at least 1/2 of the of the specified steps
    • Has a major error (detected by the browser) or many minor errors
    • Implementation seems very convoluted
    • Demonstrates few techniques from the lesson
  • 0: Does not execute or not turned in

Cookies

  • 10: Demonstrates mastery of the form and form validation techniques
    • Has extra features or demonstrates techniques beyond the assignment
    • Applies concepts from the lessons appropriately
    • Meets all specifications (see above) with particularly elegant solutions
    • Runs with no error conditions reported by the browser
    • Generates correct output given correct input
  • 8: Has all the functionality expected of the assignment
    • Demonstrates many techniques from the lesson
    • Meets all specifications (see above)
    • Runs with no error conditions reported by the browser
    • Generates correct output given correct input
  • 6: Has most of the functionality expected of the assignment
    • Demonstrates some techniques from the lesson
    • Meets all but one of the specifications (see above)
    • Runs with no error conditions reported by the browser
    • Implementation seems excessively complicated.
    • May have 2-3 minor errors in the pages
  • 4: Has some of the functionality expected of the assignment
    • Demonstrates some techniques from the lesson
    • Meets at least 1/2 of the specifications (see above)
    • Implementation seems excessively complicated.
    • May have JavaScript warnings or errors in the browser
    • Missing support files
  • 2: Serious functional problems but shows some effort and understanding
    • Meets less than 1/2 of the of the specifications (see above)
    • Has a major error (detected by the browser) or many minor errors
    • Implementation seems very convoluted
    • Demonstrates few techniques from the lesson
  • 0: Does not execute or not turned in

REAME.txt File

  • 2: README.txt file submitted with specified information included
  • 1: README.txt submitted but some information was not included
  • 0: No README.txt submitted

Extra Credit Case Study

  • 2: Shows complete mastery of the problem.
  • 1: Shows some understanding of the problem.
  • 0: Not submitted, no substantial work, or has major problems

Maximum Score: 20, plus extra credit

What to Turn In

Submit your assignment following the instructions for homework. Create a single zip file with the following:

  1. README.txt file
  2. All the files needed for the Tutorial Exercises to work correctly
  3. Your three web pages: welcome.html, register.html, and unregister.html
  4. Any other files needed to support your html pages
  5. If you chose to complete the extra credit, then all the files needed for the extra credit to work correctly.

You must submit all the files needed for your assignment to work properly. Do not assume that the instructors has any files. Your assignment must work as submitted.

Home | WebCT | Announcements | Schedule | Room Policies | Course Info
Help | FAQ's | HowTo's | Links

Last Updated: December 19 2006 @19:01:51