万本电子书0元读

万本电子书0元读

顶部广告

Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Bogdan Brinzarea

出  版  社:Packt Publishing

出版时间:2007-07-01

字       数:294.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is a practical tutorial to get you confident and comfortable working with the Microsoft AJAX suite. Packed with step-by-step examples and detailed explanations of how the examples work, this book is the ideal first step into the exciting world of AJAX in ASP.NET This book has been written for ASP.NET developers entering the world of the ASP.NET AJAX Framework, and for existing ASP.NET AJAX developers looking for a more detailed tutorial on the client-side of the framework: the Microsoft AJAX Library.
目录展开

Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained: A practical tutorial to using Microsoft AJAX Library to enhance the user experience of your ASP.NET Web Applications

Table of Contents

Copyright

Credits

About the Authors

About the Reviewers

Preface

What This Book Covers

What You Need for This Book

Who is This Book for

Conventions

Reader Feedback

Customer Support

Downloading the Example Code for the Book

Errata

Questions

1. AJAX and ASP.NET

The Big Picture

AJAX and Web 2.0

Building Websites Since 1990

HTTP and HTML

ASP.NET and Other Server-Side Technologies

JavaScript and Other Client-Side Technologies

What’s Missing?

The World of AJAX

What is AJAX Made Of?

Uses and Misuses of AJAX

Introducing ASP.NET AJAX

Resources and Tools

Setting Up Your Environment

Installing IIS

Installing Visual Web Developer

Creating a Folder for Your Project

Preparing the Atlas Application in Windows Vista

Preparing the Atlas Web Application in Windows XP

Hello World!

Time for Action—Quickstart AJAX

What Just Happened?

Summary

2. AJAX Foundations

JavaScript and the Document Object Model

Time for Action—Playing with JavaScript and the DOM

What Just Happened

JavaScript Events and the DOM

Time for Action—Using JavaScript Events and the DOM

What Just Happened?

Even More DOM

Time for Action—Even More DOM

What Just Happened?

JavaScript, DOM, and CSS

Time for Action—Working with CSS and JavaScript

What Just Happened?

The XMLHttpRequest Object

Creating the XMLHttpRequest Object

Initiating Server Requests

Handling the Server Response

Time for Action—Making Asynchronous Calls with XMLHttpRequest

What Just Happened?

Summary

3. Object-Oriented JavaScript

Concepts of Object-Oriented Programming

Objects and Classes

Encapsulation

Inheritance

Polymorphism

Object-Oriented JavaScript

JavaScript Functions

Functions as Variables

Anonymous Functions

Inner Functions and JavaScript Closures

JavaScript Classes

Class Diagrams

C# and JavaScript Classes

Referencing External Functions

Thinking of Objects as Associative Arrays

Creating Object Members on the Fly

Private Members

Prototypes

The JavaScript Execution Context

var x, this.x, and x

Using the Right Context

Inheritance using Closures and Prototypes

Inheritance Using Closures

Inheritance Using Prototyping

Introducing JSON

Summary

4. Introducing the Microsoft AJAX Library

Microsoft AJAX Library Components

Asynchronous Communication

Client Asynchronous Communication

Server Asynchronous Communication

Working with WebRequest

Time for Action—WebRequest

What Just Happened?

More WebRequests

Time for Action—More WebRequest

What Just Happened?

Summary

5. OOP with the Microsoft AJAX Library

The New Features

JavaScript Base Classes Extensions

Time for Action: Bubble Sort and Base Classes Extensions

What Just Happened?

Classes in Microsoft AJAX Library

The Type, Namespaces, and Events

Time for Action—Creating and Using the Person Class

What Just Happened?

Inheritance

Time for Action—Implementing Inheritance using Microsoft AJAX Library

What Just Happened?

Enumerations

Interfaces

Time for action—Inheritance and Interfaces

What Just Happened?

OOP Recommendations

Summary

6. Creating Client Components

DOM Elements and Events

Components, Behaviors, and Controls

Creating Components

Disposing of Components

Sys.Application and Client Page Life-Cycle Events

The init Event

The load Event

The pageLoad() Method

The pageUnload() Method

The unload Event

Behaviors

Controls

Quicksteps for Creating Custom Client Components

Summary

7. Case Study: Timer and EnhancedTextBox

The Timer Component

The EnhancedTextBox Behavior

Creating Timer and EnhancedTextBox

Time for Action—Creating Custom Client Components

What Just Happened?

Using the Components

Summary

8. Debugging Tools and Techniques

AJAX Debugging Overview

Debugging and Tracing with Microsoft AJAX Library

MicrosoftAjax.debug.js

Anonymous Functions vs. Pseudo-Named Functions

Parameters Validation

Debugging in Internet Explorer

Web Development Helper

Internet Explorer Developer Toolbar

Other tools

Debugging in Firefox

Firebug

Venkman JavaScript Debugger

Web Developer

Fiddler

Testing

Summary

A. Microsoft AJAX Library Reference

Conventions

Function Class

emptyMethod() Method

_validateParams() Method

Parameters

Returns

Remarks

Example

createDelegate() Method

Parameters

Returns

Remarks

Example

createCallback() Method

Parameters

Returns

Remarks

Example

Type Class

JavaScript Base Type Extensions

Array Class

Boolean Class

Date Class

Error Class

create() Method

Parameters

Returns

Remarks

Example

Number Class

Object Class

RegExp Class

String Class

Sys Namespace

Sys.Application Class

Sys.ApplicationLoadEventArgs Class

Sys.Browser Class

Sys.CancelEventArgs Class

Sys.Component Class

Sys.CultureInfo Class

Sys.Debug Class

Sys.EventArgs Class

Sys.EventHandlerList Class

Sys.IContainer Interface

Sys.IDisposable Interface

Sys.INotifyDisposing Interface

Sys.INotifyPropertyChange Interface

Sys.PropertyChangedEventArgs Class

Sys.ScriptLoader Class

Sys.ScriptLoaderTask Class

Sys.StringBuilder Class

Sys.UI Namespace

Sys.UI.Behavior Class

Sys.UI.Bounds Class

Sys.UI.Control Class

Sys.UI.DomElement Class

getElementById() Method ($get)

Parameters

Remarks

Example

addCssClass() Method

Parameters

Example

containsCssClass() Method

Parameters

Returns

Example

removeCssClass() Method

Parameters

Example

toggleCssClass() Method

Parameters

Example

getLocation() Method

Parameters

Returns

getBounds() Method

Parameters

Returns

Remarks

Example

setLocation() Method

Parameters

Remarks

Example

Sys.UI.DomEvent Class

Sys.UI.Key Class

addHandler() Method ($addHandler)

Parameters

Remarks

Example

addHandlers() Method ($addHandlers)

Parameters

Remarks

Example

clearHandlers() Method ($clearHandlers)

Parameters

Remarks

Example

preventDefault() Method

Example

removeHandler() Method

Parameters

Example

stopPropagation() Method

Example

Sys.UI.MouseButton Enumeration

Sys.UI.Point Class

Sys.UI.VisibilityMode Enumeration

Sys.Net Namespace

Sys.Net.NetworkRequestEventArgs Class

Sys.Net.WebRequest Class

Sys.Net.WebRequestExecutor Class

Sys.Net.WebRequestManager Class

Sys.Net.XmlHttpExecutor Class

Sys.Serialization Namespace

Sys.Serialization.JavaScriptSerializer Class

serialize() Method

Parameters

Returns

Remarks

deserialize() Method

Parameters

Returns

Remarks

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部