COMSC 96 - WWW Publishing with Javascript
Course Description: This course will help you become familiar the JavaScript programming language . We will create Web Pages using JavaScript code to perform such tasks as data verification, math and date calculations, string manipulation, and "pop up" windows.
Prerequisites: COMSC 95 or equivalent, especially use of HTML Forms. While this class is mainly for non-programmers, familiarity with another programming language such as C or C++ is helpful .
Instructor
: Robert StewartClass Dates: 01/15/2009 - 03/14/2009. Orientation: January 17 from 9 to 11 AM in room L142
Textbook: Dave Thau, "The Book Of JavaScript" . No Starch Press, 2000. ISBN 1-886411-36-0 or 2nd edition ISBN 1-59327-106-9.
Optional: Designing With JavaScript by Nick Heinle, O'Reilly ISBN 1-56592-300-6
Materials: Internet Explorer 6 and Mozilla/Firefox or Netscape 6, Sample files from class web site , PKZIP or equivalent for downloads and ".zip" files.
Schedule for Assignments from Book
Week 1 :Class Orientation at DVC. Chapter 1 .Overview of JavaScript programming, "Alert" boxes.
Book Assignment: . Do p. 11 "my_first_program.html: * (p. 12) .
Web Site Assignment: "Javascript_running".
Week 2: Chapter 2. Math & variables, Date object, input with prompt boxes, output with document.write().
Book Assignment: . Do p. 20 "seconds_in_a_day.htm" and p. 28 "write_the_date.htm" .
Web Site Assignment: "Seconds_so_far".
Week 3 : Chapter 3. Navigator object, redirection with window.location, paresefloat(), comparisons with if/else, AND and OR.
Book Assignment: p.47 "netboost.html", *("redirection" p.45).
Web Site Assignment: kidsold.htm, kidsnew.htm part 1.
Week 4: Chapter 4. Events: mouseover, mouseout, onclick.
Book Assignment: p. 63-64 "rollover.htm".
Web Site Assignment: kidsold.htm, kidsnew.htm part 2.
Students who have not turned week 1-4 homework by this time, may be dropped
Week 5 : Chapter 5. Opening windows with parameters.
Book Assignment: p. 84 & 86 "controlled_window.html" & "the_remote.html" *(p.76) .
Web Site Assignment: "trips.htm", "exchange.htm" part 1.
Week 6: Chapter 6. Functions.
Book Assignment: p.104 "parents_place.htm" *(p.87 "Getting centered").
Web Site Assignment:"trips.htm", "exchange.htm" part 2.
Week 7 : Chapter 7. Getting Information with Forms.
Book Assignment: p. 141 "world_clock.html" *(p.121).
Web Site Assignment:"trips.htm", "exchange.htm" part 3.
Week 8: Chapter 8. Arrays, Loops, Scrolling messages, associative arrays.
Book Assignment: p. 159 "ask_jeeves.html" *(p.136 "Tip Box), p 166 phone_book.htm .*(p.142)
Web Site Assignment: "cars.htm".
Last week to turn in homework, Test
*Second edition.
Grading:
To receive credit for this class, each student must take the tests and complete assignments. Class tests account for 40%, "Web Site" assignments account for 30% and Book assignments account for 30%.
Homework should be turned in every week if possible, but in any case ALL homework due must be turned in by the fourth and eighth weeks of class. Students who fail to turn in homework for weeks 1-4 by the fourth week may be dropped. Students must make a good faith effort to do the assignments correctly. This includes: reading the directions, proofreading your files source code and output and testing your work. Students who fail to do so will receive a 0 for the assignment. You will not be able to resubmit an assignment for credit if you have already received a 0 grade.