Announcements: Fri 18 May

•      Follow the web directions on the JavaScript assignment.  (No onMouseOver event handlers are required.)

•      Quiz on Monday: functions, JavaScript, HTML forms, copyright

•      JavaScript assignment is due Wednesday

•      Next week’s sections deal with Excel assignment

•      Lecture notes for JavaScript 1 and 2 are posted.


JavaScript 2:
towards an active, adaptive, Web


Jonathan Nelson

Cog Sci 3

Spring 2001

The vision

•      The information you want

•      When you want it

 

A paper

•      “Good morning Jonathan”

•      “La Jolla weather is mostly sunny, 65 degrees”

•      “Surf is 3 ft; water pollution is moderate.”

•      “Mexican parliament is debating indigenous rights bill.”

•      (Not sports)

•      (Not NY weather)

An art company:
Monet, DaVinci, porn, or Picasso?

•      Who is surfing?

–   What have they clicked on before?

–   How much money do they have?

•      What is their physiological state?

–   happy? sad?

–   sexually aroused?

–   physiologically aroused?

–   what are they looking at?

Why not HTML?

•      Everybody sees the same thing, no matter:

–   where they live

–   the time of day

–   what they’re interested in

–   how much money they have

 

•      The bottom line: in real applications,
you can’t hard code everything

DHTML

•      Dynamic

•      Adaptive

•      Personalized

Types of DHTML

•      Java

•      server-side ASP, JSP, and Perl

•      Client-side JavaScript / HTML forms

–   easy to learn

–   standardized implementation

 

 

Illustrative uses of DHTML

•      select your seat on a flight

•      randomize order of study questions

•      random image

•      pages that write themselves