Скачать презентацию Chengyu Sun California State University Los Angeles Скачать презентацию Chengyu Sun California State University Los Angeles

25733bc427480f5f2aa3a14bb38d7c4e.ppt

  • Количество слайдов: 49

Chengyu Sun California State University, Los Angeles Chengyu Sun California State University, Los Angeles

The Desktop Experience The Desktop Experience

The Desktop Advantage The Desktop Advantage

HTML Event Models HTML Event Models

Example: Event Handling Example: Event Handling

Events and Event Handler Events and Event Handler

Java. Script Java. Script

Core Java. Script Core Java. Script

Object Creation – Approach 1 Object Creation – Approach 1

Object Creation – Approach 2 Object Creation – Approach 2

Object Creation – Approach 3 Object Creation – Approach 3

Functions as First-class Citizens Functions as First-class Citizens

Function Examples Function Examples

Client-Side Java. Script Client-Side Java. Script

Processing an HTML Document Processing an HTML Document

Document Object Model (DOM) Document Object Model (DOM)

DOM Representation DOM Representation

Manipulate a Document Manipulate a Document

Find Elements Find Elements

Modify Elements. . . Modify Elements. . .

. . . Modify Elements . . . Modify Elements

Create Elements Create Elements

Example: Document Manipulation Example: Document Manipulation

Create Desktop-Like Web Applications Create Desktop-Like Web Applications

Communicate with Server Communicate with Server

Understand Asynchronous … Understand Asynchronous …

… Understand Asynchronous … Understand Asynchronous

An XMLHttp. Request Example An XMLHttp. Request Example

About the Example About the Example

XMLHttp. Request - Properties XMLHttp. Request - Properties

XMLHttp. Request - Methods XMLHttp. Request - Methods

So What is Ajax? So What is Ajax?

More About AJAX More About AJAX

Key Elements of an Ajax Operation Process the request Send back a response Key Elements of an Ajax Operation Process the request Send back a response

Problems of Plain Java. Script + Xml. Http. Request Problems of Plain Java. Script + Xml. Http. Request

Java. Script/Ajax Frameworks and Libraries Java. Script/Ajax Frameworks and Libraries

One Library to Rule Them All j. Query One Library to Rule Them All j. Query

A j. Query Example A j. Query Example

Use j. Query Library Use j. Query Library

j. Query Wrapper Selector j. Query Wrapper Selector

Basic Selectors Basic Selectors

Combine Selectors Combine Selectors

Other Selectors and Filters Other Selectors and Filters

What Can We Do With An Element What Can We Do With An Element

Typical Event and Event Handling in j. Query Event Handler Typical Event and Event Handling in j. Query Event Handler

Document Ready Event (not recommended) Document Ready Event (not recommended)

Other Events Other Events

DOM Manipulation Example: DOM Manipulation Example:

AJAX with j. Query AJAX with j. Query