CSc 337 - Web Programming > Assignments > Assignment 6

General Information

Due: 8 Feb 2012, 11:59pm

Abstract

In this assignment you will be writing a "Forever Alone" chat, where you can talk to yourself and see the message history.

Assignment

You will be writing a simple web page that will use JavaScript to run a single-user chat program. Your page will have a small text box (input box), a large text box (history box), and a button. The input box is where you will type messages and the button will append what is in the input box (provided it isn't empty) to the history box.

Your HTML file must be named alone.html, your JavaScript file must be named alone.js, and your CSS file must be named alone.css.

Notes

Your HTML code is still required to be valid HTML5. Validation will be done through http://validator.w3.org.

Your CSS file must be valid. Validation will be done through http://jigsaw.w3.org/css-validator/.

External JavaScript libraries are not allowed. The purpose of this assignment is to gain some understanding of how JavaScript is used to interact with elements on the page. Until we discuss external libraries in lecture, all JavaScript code that your project uses is expected to be entirely your own.

Hints

Don't be sad.

Homework Submission

As detailed on the homework submission page, this homework must be on the class web server in a folder titled homework6 for it to be graded.