s
menu
menu
Login  |  Register  |  Media Kit  |  Press  |  Site Map  |  Contact Us Digg It! Post to Del.icio.us Bookmark using any social bookmark manager!  Increase font-sizeDecrease font-sizeRestore default font-sizes



Download Code
Examples and
Other Premium
Content for
Registered Users

Login or Register to download this book's code examples and other premium content.

Ajax, Rich Internet Applications and Web Development for ProgrammersMinimize

Now Available

Table of Contents

Preface

Before You Begin

Part 1: Introduction

Chapter 1 Dive Into® Web 2.0

1.1 Introduction

1.2 What Is Web 2.0?

1.3 Search

1.4 Content Networks

1.5 User-Generated Content

1.6 Blogging

1.7 Social Networking

1.8 Social Media

1.9 Tagging

1.10 Social Bookmarking

1.11 Software Development

1.12 Rich Internet Applications (RIAs)

1.13 Web Services, Mashups, Widgets and Gadgets

1.14 Location-Based Services

1.15 XML, RSS, Atom, JSON and VoIP

1.16 Web 2.0 Monetization Models

1.17 Web 2.0 Business Models

1.18 Future of the Web

1.19 Where to Go for More Web 2.0 Information

1.20 Web 2.0 Bibliography

1.21 Web 2.0 Glossary

Part 2: The Ajax Client

Chapter 2 Introduction to XHTML

2.1 Introduction

2.2 Editing XHTML

2.3 First XHTML Example

2.4 W3C XHTML Validation Service

2.5 Headings

2.6 Linking

2.7 Images

2.8 Special Characters and Horizontal Rules

2.9 Lists

2.10 Tables

2.11 Forms

2.12 Internal Linking

2.13 meta Elements

2.14 Web Resources

Chapter 3 Cascading Style Sheets™ (CSS)

3.1 Introduction

3.2 Inline Styles

3.3 Embedded Style Sheets

3.4 Conflicting Styles

3.5 Linking External Style Sheets

3.6 Positioning Elements

3.7 Backgrounds

3.8 Element Dimensions

3.9 Box Model and Text Flow

3.10 Media Types

3.11 Building a CSS Drop-Down Menu

3.12 User Style Sheets

3.13 CSS 3

3.14 Web Resources

Chapter 4 JavaScript: Introduction to Scripting

4.1 Introduction

4.2 Simple Program: Displaying a Line of Text in a Web Page

4.3 Modifying Our First Program

4.4 Obtaining User Input with prompt Dialogs

4.4.1 Dynamic Welcome Page

4.4.2 Adding Integers

4.5 Data Types in JavaScript

4.6 Arithmetic

4.7 Decision Making: Equality and Relational Operators

4.8 Web Resources

Chapter 5 JavaScript: Control Statements I

5.1 Introduction

5.2 Control Statements

5.3 if Selection Statement

5.4 ifelse Selection Statement

5.5 while Repetition Statement

5.6 Counter-Controlled Repetition

5.7 Formulating Algorithms: Sentinel-Controlled Repetition

5.8 Formulating Algorithms: Nested Control Statements

5.9 Assignment Operators

5.10 Increment and Decrement Operators

5.11 Web Resources

Chapter 6 JavaScript: Control Statements II

6.1 Introduction

6.2 Essentials of Counter-Controlled Repetition

6.3 for Repetition Statement

6.4 Examples Using the for Statement

6.5 switch Multiple-Selection Statement

6.6 dowhile Repetition Statement

6.7 break and continue Statements

6.8 Labeled break and continue Statements

6.9 Logical Operators

6.10 Web Resources

Chapter 7 JavaScript: Functions

7.1 Introduction

7.2 Program Modules in JavaScript

7.3 Programmer-Defined Functions

7.4 Function Definitions

7.5 Random Number Generation

7.6 Example: Game of Chance

7.7 Another Example: Random Image Generator

7.8 Scope Rules

7.9 JavaScript Global Functions

7.10 Recursion

7.11 Recursion vs. Iteration

7.12 Web Resources

Chapter 8 JavaScript: Arrays

8.1 Introduction

8.2 Arrays

8.3 Declaring and Allocating Arrays

8.4 Examples Using Arrays

8.5 Random Image Generator Using Arrays

8.6 References and Reference Parameters

8.7 Passing Arrays to Functions

8.8 Sorting Arrays

8.9 Multidimensional Arrays

8.10 Building an Online Quiz

8.11 Web Resources

Chapter 9 JavaScript: Objects

9.1 Introduction

9.2 Introduction to Object Technology

9.3 Math Object

9.4 String Object

9.4.1 Fundamentals of Characters and Strings

9.4.2 Methods of the String Object

9.4.3 Character-Processing Methods

9.4.4 Searching Methods

9.4.5 Splitting Strings and Obtaining Substrings

9.4.6 XHTML Markup Methods

9.5 Date Object

9.6 Boolean and Number Objects

9.7 document Object

9.8 window Object

9.9 Using Cookies

9.10 Multipage HTML and JavaScript Application

9.11 Using JSON to Represent Objects

9.12 Web Resources

Chapter 10 Document Object Model (DOM): Objects and Collections

10.1 Introduction

10.2 Modeling a Document: DOM Nodes and Trees

10.3 Traversing and Modifying a DOM Tree

10.4 DOM Collections

10.5 Dynamic Styles

10.6 Summary of the DOM Objects and Collections

10.7 Web Resources

Chapter 11 JavaScript: Events

11.1 Introduction

11.2 Registering Event Handlers

11.3 Event onload

11.4 Event onmousemove, the event Object and this

11.5 Rollovers with onmouseover and onmouseout

11.6 Form Processing with onfocus and onblur

11.7 Form Processing with onsubmit and onreset

11.8 Event Bubbling

11.9 More Events

11.10 Web Resources

Chapter 12 XML and RSS

12.1 Introduction

12.2 XML Basics

12.3 Structuring Data

12.4 XML Namespaces

12.5 Document Type Definitions (DTDs)

12.6 W3C XML Schema Documents

12.7 XML Vocabularies

12.7.1 MathML™

12.7.2 Other Markup Languages

12.8 Extensible Stylesheet Language and XSL Transformations

12.9 Document Object Model (DOM)

12.10 RSS

12.11 Web Resources

Chapter 13 Ajax-Enabled Rich Internet Applications

13.1 Introduction

13.2 Traditional Web Applications vs. Ajax Applications

13.3 Rich Internet Applications (RIAs) with Ajax

13.4 History of Ajax

13.5 "Raw" Ajax Example Using the XMLHttpRequest Object

13.6 Using XML and the DOM

13.7 Creating a Full-Scale Ajax-Enabled Application

13.8 Dojo Toolkit

13.9 Web Resources

Part 3: Rich Internet Application Client Technologies

Chapter 14 Adobe® Flash® CS3

14.1 Introduction

14.2 Flash Movie Development

14.3 Learning Flash with Hands-On Examples

14.3.1 Creating a Shape with the Oval Tool

14.3.2 Adding Text to a Button

14.3.3 Converting a Shape into a Symbol

14.3.4 Editing Button Symbols

14.3.5 Adding Keyframes

14.3.6 Adding Sound to a Button

14.3.7 Verifying Changes with Test Movie

14.3.8 Adding Layers to a Movie

14.3.9 Animating Text with Tweening

14.3.10 Adding a Text Field

14.3.11 Adding ActionScript

14.4 Publishing Your Flash Movie

14.5 Creating Special Effects with Flash

14.5.1 Importing and Manipulating Bitmaps

14.5.2 Creating an Advertisement Banner with Masking

14.5.3 Adding Online Help to Forms

14.6 Creating a Website Splash Screen

14.7 ActionScript

14.8 Web Resources

Chapter 15 Adobe® Flash® CS3: Building an Interactive Game

15.1 Introduction

15.2 Object-Oriented Programming

15.3 Objects in Flash

15.4 Cannon Game: Preliminary Instructions and Notes

15.5 Adding a Start Button

15.6 Creating Moving Objects

15.7 Adding the Rotating Cannon

15.8 Adding the Cannonball

15.9 Adding Sound and Text Objects to the Movie

15.10 Adding the Time Counter

15.11 Detecting a Miss

15.12 Adding Collision Detection

15.13 Finishing the Game

15.14 ActionScript 3.0 Elements Introduced in This Chapter

Chapter 16 Adobe® Flex™ 2 and Rich Internet Applications

16.1 Introduction

16.2 Flex Platform Overview

16.3 Creating a Simple User Interface

16.4 Accessing XML Data from Your Application

16.5 Interacting with Server-Side Applications

16.6 Customizing Your User Interface

16.7 Creating Charts and Graphs

16.8 Connection Independent RIAs on the Desktop: Adobe Integrated Runtime (AIR)

16.9 Flex 3 Beta

16.10 Web Resources

Part 3: Rich Internet Application Server Technologies

17 Web Servers (IIS and Apache)

17.1 Introduction

17.2 HTTP Transactions

17.3 Multitier Application Architecture

17.4 Client-Side Scripting versus Server-Side Scripting

17.5 Accessing Web Servers

17.6 Microsoft Internet Information Services (IIS)

17.6.1 Microsoft Internet Information Services (IIS) 5.1 and 6.0

17.6.2 Microsoft Internet Information Services (IIS) 7.0

17.7 Apache HTTP Server

17.8 Requesting Documents

17.9 Web Resources

18 Database: SQL, MySQL, ADO.NET 2.0 and Java DB

18.1 Introduction

18.2 Relational Databases

18.3 Relational Database Overview: A books Database

18.4 SQL

18.4.1 Basic SELECT Query

18.4.2 WHERE Clause

18.4.3 ORDER BY Clause

18.4.4 Combining Data from Multiple Tables: INNER JOIN

18.4.5 INSERT Statement

18.4.6 UPDATE Statement

18.4.7 DELETE Statement

18.5 MySQL

18.6 Instructions for Installing MySQL

18.7 Instructions for Setting Up a MySQL User Account

18.8 Creating a Database in MySQL

18.9 ADO.NET Object Model

18.10 Java DB/Apache Derby

18.11 Web Resources

Chapter 19 PHP

19.1 Introduction

19.2 PHP Basics

19.3 String Processing and Regular Expressions

19.3.1 Comparing Strings

19.3.2 Regular Expressions

19.4 Form Processing and Business Logic

19.5 Connecting to a Database

19.6 Using Cookies

19.7 Dynamic Content

19.8 Operator Precedence Chart

19.9 Web Resources

Chapter 20 Ruby on Rails

20.1 Introduction

20.2 Ruby

20.3 Rails Framework

20.4 ActionController and ActionView

20.5 A Database-Driven Web Application

20.6 Case Study: Message Forum

20.6.1 Logging In and Logging Out

20.6.2 Embellishing the Models

20.6.3 Generating Scaffold Code

20.6.4 Forum Controller and Forum Views

20.6.5 Message Controller and Message Views

20.6.6 Ajax-Enabled Rails Applications

20.7 Script.aculo.us

20.8 Web Resources

Chapter 21 ASP.NET 2.0 and ASP.NET Ajax

21.1 Introduction

21.2 Creating and Running a Simple Web Form Example

21.2.1 Examining an ASPX File

21.2.2 Examining a Code-Behind File

21.2.3 Relationship Between an ASPX File and a Code-Behind File

21.2.4 How the Code in an ASP.NET Web Page Executes

21.2.5 Examining the XHTML Generated by an ASP.NET Application

21.2.6 Building an ASP.NET Web Application

21.3 Web Controls

21.3.1 Text and Graphics Controls

21.3.2 AdRotator Control

21.3.3 Validation Controls

21.4 Session Tracking

21.4.1 Cookies

21.4.2 Session Tracking with HttpSessionState

21.5 Case Study: Connecting to a Database in ASP.NET

21.5.1 Building a Web Form That Displays Data from a Database

21.5.2 Modifying the Code-Behind File for the Guestbook Application

21.6 Case Study: Secure Books Database Application

21.6.1 Examining the Completed Secure Books Database Application

21.6.2 Creating the Secure Books Database Application

21.7 ASP.NET Ajax

21.8 Web Resources

Chapter 22 JavaServer™ Faces Web Applications

22.1 Introduction

22.2 Java Web Technologies

22.2.1 Servlets

22.2.2 JavaServer Pages

22.2.3 JavaServer Faces

22.2.4 Web Technologies in Netbeans

22.3 Creating and Running a Simple Application in Netbeans

22.3.1 Examining a JSP File

22.3.2 Examining a Page Bean File

22.3.3 Event-Processing Life Cycle

22.3.4 Relationship Between the JSP and Page Bean Files

22.3.5 Examining the XHTML Generated by a Java Web Application

22.3.6 Building a Web Application in Netbeans

22.4 JSF Components

22.4.1 Text and Graphics Components

22.4.2 Validation Using Validator Components and Custom Validators

22.5 Session Tracking

22.5.1 Cookies

22.5.2 Session Tracking with the SessionBean Object

22.6 Web Resources

Chapter 23 Ajax-Enabled JavaServer™ Faces Web Applications

23.1 Introduction

23.2 Accessing Databases in Web Applications

23.2.1 Building a Web Application That Displays Data from a Database

23.2.2 Modifying the Page Bean File for the AddressBook Application

23.3 Ajax-Enabled JSF Components

23.4 AutoComplete Text Field and Virtual Forms

23.4.1 Configuring Virtual Forms

23.4.2 JSP File with Virtual Forms and an AutoComplete Text Field

23.4.3 Providing Suggestions for an AutoComplete Text Field

23.5 Google Maps Map Viewer Component

23.5.1 Obtaining a Google Maps API Key

23.5.2 Adding a Map Viewer Component to a Page

23.5.3 JSP File with a Map Viewer Component

23.5.4 Page Bean That Displays a Map in the Map Viewer Component

23.6 Web Resources

Chapter 24 Web Services

24.1 Introduction

24.2 Java Web Services Basics

24.3 Creating, Publishing, Testing and Describing a Web Service

24.3.1 Creating a Web Application Project and Adding a Web Service Class in Netbeans

24.3.2 Defining the HugeInteger Web Service in Netbeans

24.3.3 Publishing the HugeInteger Web Service from Netbeans

24.3.4 Testing the HugeInteger Web Service with Sun Java System Application Server’s Tester Web page

24.3.5 Describing a Web Service with the Web Service Description Language (WSDL)

24.4 Consuming a Web Service

24.4.1 Creating a Client in Netbeans to Consume the HugeInteger Web Service

24.4.2 Consuming the HugeInteger Web Service

24.5 SOAP

24.6 Session Tracking in Web Services

24.6.1 Creating a Blackjack Web Service

24.6.2 Consuming the Blackjack Web Service

24.7 Consuming a Database-Driven Web Service from a Web Application

24.7.1 Configuring Java DB in Netbeans and Creating the Reservation Database

24.7.2 Creating a Web Application to Interact with the Reservation Web Service

24.8 Passing an Object of a User-Defined Type to a Web Service

24.9 REST-Based Web Services in ASP.NET

24.9.1 REST-Based Web Service Functionality

24.9.2 Creating an ASP.NET REST-Based Web Service

24.9.3 Adding Data Components to a Web Service

24.10 Web Resources

Index

Print  
foot
Update :: May 16, 2008