Web
Programming

Fall 2012
course
navigation

Sep 18

Last week's homework

Discuss the CGI assignment.
Do we want to spend more time on this?

JavaScript

Where we're going :
1. The language itself - scope, objects, JSON, ... 2. The DOM - the object API of the HTML tags 3. 3rd party libraries - jQuery, Underscore, ...

How to run JavaScript in the browser

The basic idea: Jim's example

JavaScript resources

Javascript Language Syntax

defining variables and functions.
structures
conditionals, true, false, loops
scope and namespaces

examples

Examples of where to run javascript in html :
JSFiddle is very useful for trying out / demoing an idea. Here is a small example: http://jsfiddle.net/vTzNd/3/.
A more complex example.

Aside :
use strict
http://cs.marlboro.edu/ courses/ fall2012/web/ notes/ Sep_18
last modified Tuesday September 18 2012 2:29 pm EDT