JavaScript in the Browser
CSCE 242
University of South Carolina
José M. Vidal
http://jmvidal.cse.sc.edu/talks/javascriptinbrowser/
An introduction to the language as used within a browser. This talk follows:
David Flanagan,
JavaScript
, 5th edition, 2006. Chapters 13–20.
Examples are
taken
from that book.
1
Browser Environment
1.1
Level 0 DOM
1.2
Including JavaScript in HTML
1.3
JavaScript URLs
1.4
Executing Scripts
1.5
Threading
1.6
Security
1.6.1
Cross-Site Scripting
2
Scripting Browser Windows
2.1
Timers
2.2
Parsing URLs
2.3
Window Geometry
2.4
Navigator
2.5
Manipulating Windows
2.6
Window Moving Example
2.7
Dialog Boxes
2.8
Frames
3
Scripting Documents
3.1
Legacy DOM Collections
3.1.1
Naming Document Objects
3.1.2
Listing Links Example
3.2
W3C DOM
3.2.1
Types of Nodes
3.3
HTMLElement
3.4
DOM Levels
3.5
Traversing a Document
3.5.1
Getting Text
3.6
Finding a Specific Element
3.7
Modifying a Document
3.7.1
Modifying Text
3.7.2
Modifying Attributes
3.7.3
Document Fragments
3.8
Easier Document Creation
3.9
Querying Selected Text
4
CSS and Dynamic HTML
4.1
Useful CSS Attributes
4.1.1
Shadows
4.1.2
Animations
4.2
Scripting Inline Styles
4.3
Scripting Classes
5
Event Handling
5.1
Events
5.2
Setting Events in DOM Level 0
5.2.1
Return Values
5.2.2
Event Handler Scope
6
DOM Level 2 Event Handling
6.1
Event Handler Registration
6.1.1
HTML Event Types
6.1.2
MouseEvent Types
6.1.3
Event Object
6.2
IE Events
6.3
Example: Dragging Document Elements
7
Forms
7.1
Form Source Code
8
Cookies
9
Getting Data From Server
9.1
XMLHttpRequest
9.1.1
Creating an XMLHttpRequest Object
9.1.2
Submitting a Request
9.1.3
Synchronous Response
9.1.4
Asynchronous Response
9.1.5
Security
9.2
Examples
9.2.1
HTTP Post
9.2.2
Handling a JSON Response
9.2.3
Timing Out a Request
Entire Presentation with Notes
Copyright © 2009
José M. Vidal
.
All rights reserved.
06 February 2009, 09:29AM