logo资料库

Programming+the+World+Wide+Web.pdf

第1页 / 共763页
第2页 / 共763页
第3页 / 共763页
第4页 / 共763页
第5页 / 共763页
第6页 / 共763页
第7页 / 共763页
第8页 / 共763页
资料共763页,剩余部分请下载后查看
Cover
Title Page
Copyright Page
Preface
Acknowledgments
Contents
1 Fundamentals
1.1 A Brief Introduction to the Internet
1.2 The World Wide Web
1.3 Web Browsers
1.4 Web Servers
1.5 Uniform Resource Locators
1.6 Multipurpose Internet Mail Extensions
1.7 The Hypertext Transfer Protocol
1.8 Security
1.9 The Web Programmer's Toolbox
Summary
Review Questions
Exercises
2 Introduction to HTML/XHTML
2.1 Origins and Evolution of HTML and XHTML
2.2 Basic Syntax
2.3 Standard HTML Document Structure
2.4 Basic Text Markup
2.5 Images
2.6 Hypertext Links
2.7 Lists
2.8 Tables
2.9 Forms
2.10 HTML5
2.11 Syntactic Differences between HTML and XHTML
Summary
Review Questions
Exercises
3 Cascading Style Sheets
3.1 Introduction
3.2 Levels of Style Sheets
3.3 Style Specification Formats
3.4 Selector Forms
3.5 Property-Value Forms
3.6 Font Properties
3.7 List Properties
3.8 Alignment of Text
3.9 Color
3.10 The Box Model
3.11 Background Images
3.12 The and
Tags
3.13 Conflict Resolution
Summary
Review Questions
Exercises
4 The Basics of JavaScript
4.1 Overview of JavaScript
4.2 Object Orientation and JavaScript
4.3 General Syntactic Characteristics
4.4 Primitives, Operations, and Expressions
4.5 Screen Output and Keyboard Input
4.6 Control Statements
4.7 Object Creation and Modification
4.8 Arrays
4.9 Functions
4.10 An Example
4.11 Constructors
4.12 Pattern Matching by Using Regular Expressions
4.13 Another Example
4.14 Errors in Scripts
Summary
Review Questions
Exercises
5 JavaScript and HTML Documents
5.1 The JavaScript Execution Environment
5.2 The Document Object Model
5.3 Element Access in JavaScript
5.4 Events and Event Handling
5.5 Handling Events from Body Elements
5.6 Handling Events from Button Elements
5.7 Handling Events from Text Box and Password Elements
5.8 The DOM 2 Event Model
5.9 The canvas Element
5.10 The navigator Object
5.11 DOM Tree Traversal and Modification
Summary
Review Questions
Exercises
6 Dynamic Documents with JavaScript
6.1 Introduction
6.2 Positioning Elements
6.3 Moving Elements
6.4 Element Visibility
6.5 Changing Colors and Fonts
6.6 Dynamic Content
6.7 Stacking Elements
6.8 Locating the Mouse Cursor
6.9 Reacting to a Mouse Click
6.10 Slow Movement of Elements
6.11 Dragging and Dropping Elements
Summary
Review Questions
Exercises
7 Introduction to XML
7.1 Introduction
7.2 The Syntax of XML
7.3 XML Document Structure
7.4 Document Type Definitions
7.5 Namespaces
7.6 XML Schemas
7.7 Displaying Raw XML Documents
7.8 Displaying XML Documents with CSS
7.9 XSLT Style Sheets
7.10 XML Processors
7.11 Web Services
Summary
Review Questions
Exercises
8 Introduction to Flash
8.1 Origins and Uses of Flash
8.2 A First Look at the Flash Authoring Environment
8.3 Drawing Tools
8.4 Static Graphics
8.5 Animation and Sound
8.6 User Interactions
Summary
Review Questions
Exercises
9 Introduction to PHP
9.1 Origins and Uses of PHP
9.2 Overview of PHP
9.3 General Syntactic Characteristics
9.4 Primitives, Operations, and Expressions
9.5 Output
9.6 Control Statements
9.7 Arrays
9.8 Functions
9.9 Pattern Matching
9.10 Form Handling
9.11 Cookies
9.12 Session Tracking
Summary
Review Questions
Exercises
10 Introduction to Ajax
10.1 Overview of Ajax
10.2 The Basics of Ajax
10.3 Return Document Forms
10.4 Ajax Toolkits
10.5 Security and Ajax
Summary
Review Questions
Exercises
11 Java Web Software
11.1 Introduction to Servlets
11.2 The NetBeans Integrated Development Environment
11.3 A Survey Example
11.4 Storing Information on Clients
11.5 JavaServer Pages
11.6 JavaBeans
11.7 Model–View–Controller Application Architecture
11.8 JavaServer Faces
Summary
Review Questions
Exercises
12 Introduction to ASP.NET
12.1 Overview of the .NET Framework
12.2 A Bit of C#
12.3 Introduction to ASP.NET
12.4 ASP.NET Controls
12.5 ASP.NET AJAX
12.6 Web Services
Summary
Review Questions
Exercises
13 Database Access through the Web
13.1 Relational Databases
13.2 An Introduction to the Structured Query Language
13.3 Architectures for Database Access
13.4 The MySQL Database System
13.5 Database Access with PHP and MySQL
13.6 Database Access with JDBC and MySQL
13.7 Database Access with ASP.NET and MySQL
Summary
Review Questions
Exercises
14 Introduction to Ruby
14.1 Origins and Uses of Ruby
14.2 Scalar Types and Their Operations
14.3 Simple Input and Output
14.4 Control Statements
14.5 Fundamentals of Arrays
14.6 Hashes
14.7 Methods
14.8 Classes
14.9 Blocks and Iterators
14.10 Pattern Matching
Summary
Review Questions
Exercises
15 Introduction to Rails
15.1 Overview of Rails
15.2 Document Requests
15.3 Rails Applications with Databases
Summary
Review Questions
Exercises
Appendix A: Introduction to Java
Appendix B: Named Colors
Index
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Programming The World Wide Web Seventh edition
This page intentionally left blank
Programming The World Wide Web Seventh edition R o b e R t W . S e b e S t a University of Colorado at Colorado Springs Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo
Editorial Director: Marcia Horton Editor in Chief: Michael Hirsch Executive Editor: Matt Goldstein Editorial Assistant: Emma Snider Director of Marketing: Patrice Jones Marketing Manager: Yez Alayan Marketing Coordinator: Kathryn Ferranti Director of Production: Vince O'Brien Managing Editor: Jeff Holcomb Production Project Manager: Kayla Smith-Tarbox Operations Supervisor: Alan Fischer Manufacturing Buyer: Lisa McDowell Art Director: Anthony Gemmellaro Manager, Visual Research: Karen Sanatar Photo Researcher: Tim Herzog Manager, Rights and Permissions: Michael Joyce Text Permission Coordinators: Tracy Metevier and Jenn Kennett Cover Art: © Shutterstock Lead Media Project Manager: Daniel Sandin Project Management and Text Design: Gillian Hall Composition: Laserwords Printer/Binder: Courier Cover Printer: Courier Text Font: JansonText Copyright © 2013, 2011, 2010, 2008, 2006 Pearson Education, Inc., publishing as Addison-Wesley. All rights reserved. Manufactured in the United States of America. This publication is protected by Copyright, and permission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission(s) to use material from this work, please submit a written request to Pearson Education, Inc., Permissions Department, 501 Boylston Street, Suite 900, Boston, Massachusetts 02116. Figure 2.1: © Screenshot from http://validator.w3.org/; W3C. Reprinted with permission. Figure 2.11: © Screenshot from http://validator.w3.org/; W3C. Reprinted with permission. Figure 3.12: © Camerapilot | Dreamstime.com Figure 6.4: © Gl0ck | Shutterstock.com Figure 6.9: © Nancy Nehring | ISTOCKPHOTO Figure 6.11: © mobil11 | Shutterstock.com Figures 8.1–8.5, 8.8–8.14, 8.16–8.34: Adobe screenshots © 2012 by Adobe Systems Incorporated. All rights reserved. Adobe and Flash is/are either [a] registered trademark[s] or a trademark[s] of Adobe Systems Incorporated in the United States and/or other countries. Figure 10.2: © Stephen Bonk | Shutterstock.com Figures 11.4–11.8, 11.16–11.18: © 1997, 2011, Oracle and/or its affiliates. All rights reserved. Many of the designations by manufacturers and seller to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed in initial caps or all caps. Library of Congress Cataloging-in-Publication Data available upon request. 10 9 8 7 6 5 4 3 2 1—CRS—14 13 12 11 10 ISBN-10: 0-13-266581-6 ISBN-13: 978-0-13-266581-0
To Aidan
This page intentionally left blank
New to the Seventh Edition • Chapter 2 • Chapter 3 • Chapter 5 • Chapter 8 • Chapter 11 A section on the new elements of HTML5 has been added All CSS font sizes from this chapter onward have been changed from points to em A discussion of the HTML5 canvas element has been added Includes a new section on importing graphic figures Version 7 of the NetBeans development system is now covered • Chapter 12 Has been revised to discuss Visual Studio 2010 • Chapter 13 The discussion of the PHP/MySQL functions has been revised to reflect the new versions of these functions • Chapter 15 A discussion of Rails 3.1 replaces Rails 2.4
分享到:
收藏