CIS 201 Java 2

First exam

Chapter 1 Web Site and Web Page Design Design

12 The Many Facets of Web Design "Hours of careful thought"

"This chapter gives you some thing to think about during the planning stages for both the entire site and for individual pages."

12 Site usability and accessibility
13 Usability - a measure of how quickly it (web site) gets its message across to the average user…
13 Six to eight second rule. Dependencies of the page (images, applets etc) can slow download speed
13 Web users don't read - they scan
14 Not all users have visual browsers. ???

15 Know your audience
How will users move through the information?
CONSISTENCY
17 What technologies do your users have?
Which & version of web browser, plugins, "helper applications" (Word, Excel etc)

20 Structuring information
Drill down structure, flat structure
Multiple browser windows

25 Backgrounds ( graphic, color)

31 Contact information, email (form, default client mail handler)

38 Breaking up long pages

42 Testing your design (**important**)
Pilot the site, try with different browsers & platforms, different connection speed

43 Trends in website design
Server side processing (ASP Chap 32, PHP Chap 34)
44 Personalization

 

Chapter 18 Introduction to JavaScript

434 JavaScript embeds commands in a HTML page
Computer languages - Compiled, Interpreter
JavaScript in a Interpreted language

Why use a Scripting Language?
HTML by itself is static.

435 JavaScript enables web authors to write small scripts that execute on the user's browsers, rather than on the server.

What can JavaScript do?

Math calculations
Manipulate Strings
Play sounds
Open new windows & new URLs

Java Script execute when the page is loaded. Functions can also be written containing code triggered by events specified by the programmer. JavaScript can set attributes & properties.

436 JavaScript is case sensitive (ie: A = 0; a = 0;) 2 different identifiers (variables, data names)

programming style - one statement per line is best.

438 Identifiers (variables, data names)

444 Comparisons (Relational operators) Table 18.2

445 = ==

446 Controlling JavaScript
testing conditions IF
447 FOR
WHILE
448 JavaScript reserved words, Using JavaScript statements

450 FOR loop

451 FUNCTION statement

IF … ELSE statement

452 NEW statement

453 RETURN statement

VAR statement

454 WHILE statement

455 JavaScript and web browsers
When scripts execute
Where to put scripts anywhere also matched with events attached to these elements (forms, buttons, links)

 

Chapter 3 XHTML (HTML)

71 <html>
72 <head>
73 <meta> keywords, author, page-generation software used
77 <noscript> alternate content if a script cannot be executed
79 <title> browser window title bar, bookmark & history listing
79 <body>

81 Text-level formatting (all below are containers)
<b> boldface
82 <big> text rendered in a font size bigger than default
83 <i> italics
84 <small> text rendered in a font size smaller than default
92 <strong> boldface
95 <br> line break
99 <p> paragraph
<pre> text preformatted in a fixed width font
106 <a> hyperlink (two parts - display & link)
113 <table> use an authoring tool!
122 <form> (covered later)
132 <frames> (if this was a class on HTML we would cover frames)

 

Second Exam

Chapter 8 Forms

234 Overview: Forms and CGI (CGI, Common Gateway Interface - Server side)
235 <FORM> tag
237 <INPUT> tag
237 Types of Named Input fields - Table 8.2
238 non-breaking space &nbsp
238 Text & Password fields
240 Check boxes
242 Radio buttons
244 Multiple Line Text Windows
246 Menus
249 Action buttons
252 Scripted button

 

Chapter 19 The Document Object Model

460 object-scoping rules in javascript

461 The window object properties (review all of them)
462 window object methods (review all of them)
window object events (review all of them)

463 location object Table 19.1 (review all of them)
466 history object Table 19.2 (review all of them)

467 document object properties (review all of them)
document object methods (review all of them)

469 JavaScript object Arrays
470 document.forms[0] document[1] etc
472 onClick, onMouseOver, onMouseout

473 Table 19.7 - value

 

Chapter 23 Using JavaScript to control Web Browser Objects

566 JavaScript objects

570 Date object Table 23.1 (review all of them)

571-572 Math object Table 23.3 (abs() max() min() pow() random() round() sqrt()

Chapter 20 Windows and Frames - JavaScript

481 window.open()
482 options (Review All)
483 referencing Child windows
485 referencing Parent window

489 alert() confirm(), prompt()
490 alert()
491 confirm()
492 prompt()

499 Frames (not on exam)

Chapter 21 Using JavaScript to create Smart Forms

514 Client side Form validation

517 Prefilling entries

518 - 525 Formatting and Validating

Chapter 22 Cookies and state maintenance

544 Stateless HTTP
Maintaining State

545 Cookies: an introduction
546 Advantages, limitations, disadvantages of cookies
separate cookie each browser, each site
cookies can be disabled
547 cookie myths
privacy violation
Main use - customize site for users

548 Retrieving cookie values

549 Setting cookie values

Discussion - deleting cookies