没有合适的资源?快使用搜索试试~ 我知道了~
现代javascript开发技术(英文原版)
需积分: 9 9 下载量 52 浏览量
2014-09-10
13:42:43
上传
评论
收藏 5.77MB PDF 举报
温馨提示
试读
380页
英文原版书籍 原名 Pro JavaScript Techniques Real World JavaScript Techniques For The Modern Professional Web Developer
资源推荐
资源详情
资源评论
this print for content only—size & color not accurate spine = 0.893" 384 page count
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Resig
Pro JavaScript
™
Techniques
THE EXPERT’S VOICE
®
IN WEB DEVELOPMENT
John Resig
Pro
JavaScript
Techniques
ISBN 1-59059-727-3
9 781590 597279
54499
6 89253 59727 9
Companion
eBook Available
Real-world JavaScript
™
techniques for
the modern, professional web developer
www.apress.com
SOURCE CODE ONLINE
Companion eBook
See last page for details
on $10 eBook version
THE APRESS ROADMAP
Beginning XML
with DOM and Ajax:
From Novice to Professional
Beginning JavaScript with
DOM Scripting and Ajax:
From Novice to Professional
Beginning CSS
Web Development:
From Novice to Professional
Foundations of Ajax
Pro JavaScript
™
Techniques
Pro CSS Techniques
Ajax and REST Recipes:
A Problem-Solution Approach
Ajax Patterns
and Best Practices
Pro JavaScript
™
Techniques
Dear Reader,
If one thing is apparent in modern web applications, it is that JavaScript
™
programming is a required skill, demanding knowledgeable developers. The
problem is that up until just recently, JavaScript has been treated as a toy lan-
guage—when it is anything but.
In this book I show you how modern JavaScript development works,
emphasizing the practical skills necessary to build professional, dynamic web
applications.
I start with some of the fundamentals of object-oriented JavaScript, best
practices, and debugging and testing, and then move on to DOM scripting and
events and how they allow JavaScript, CSS, and HTML to interact dynamically.
You’ll take that knowledge and use it to build page-enhancing effects and inter-
esting interactions. Next, I provide a detailed exploration of the concepts behind
Ajax and how it can improve the user experience. Finally, I give you a look at the
future of JavaScript—where is it going from here? At the end of the book, several
appendixes are provided so you can look up syntax quickly and easily.
Throughout this book I provide a number of case studies and sets of reusable
functions that you can follow along with and use in your own applications to
demonstrate the concepts covered. This includes everything from image galleries
and autocomplete search boxes to a full Ajax wiki application. Additionally, I
provide a number of examples that utilize modern JavaScript libraries such as
Prototype, Scriptaculous, and others.
I wrote this book to get any programmer with simple JavaScript experience
completely up to date with the latest techniques behind the technology. I hope
that you’ll gain a greater understanding and learn everything that you need to
become a successful JavaScript developer.
John Resig
™
John Resig
Pro JavaScript
™
Techniques
7273fmfinal.qxd 11/16/06 8:02 AM Page i
www.ebooks.org.in
Pro JavaScript™ Techniques
Copyright © 2006 by John Resig
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-59059-727-9
ISBN-10 (pbk): 1-59059-727-3
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence
of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc., in the
US and other countries. Apress, Inc., is not affiliated with Sun Microsystems, Inc., and this book was writ-
ten without endorsement from Sun Microsystems, Inc.
Lead Editor: Chris Mills
Technical Reviewer: Dan Webb
Editorial Board: Steve Anglin, Ewan Buckingham, Gary Cornell, Jason Gilmore, Jonathan Gennick,
Jonathan Hassell, James Huddleston, Chris Mills, Matthew Moodie, Dominic Shakeshaft, Jim Sumser,
Keir Thomas, Matt Wade
Project Manager: Tracy Brown Collins
Copy Edit Manager: Nicole Flores
Copy Editor: Jennifer Whipple
Assistant Production Director: Kari Brooks-Copony
Production Editor: Laura Esterman
Compositor: Linda Weidemann, Wolf Creek Press
Proofreader: April Eddy
Indexer: Broccoli Information Management
Artist: April Milne
Cover Designer: Kurt Krames
Manufacturing Director: Tom Debolski
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail
orders-ny@springer-sbm.com,
or visit http://www.springeronline.com.
For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley,
CA 94710. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com, or visit http://www.apress.com.
The information in this book is distributed on an “as is” basis, without warranty. Although every pre-
caution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any
liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly
or indir
ectly b
y the infor
mation contained in this work.
The source code for this book is available to readers at http://www.apress.com in the Source Code/
Download section and on the book’s web site at http://jspro.org.
7273fmfinal.qxd 11/16/06 8:02 AM Page ii
www.ebooks.org.in
Contents at a Glance
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
PART 1
■ ■ ■
Introducing Modern JavaScript
■CHAPTER 1 Moder
n JavaScript Prog
ramming
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
PART 2
■ ■ ■
Professional JavaScript Development
■CHAPTER 2 Object-Oriented JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
■CHAPTER 3 Creating Reusable Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
■CHAPTER 4 Tools for Debugging and Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
PART 3
■ ■ ■
Unobtrusive JavaScript
■CHAPTER 5 The Document Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
■CHAPTER 6 Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
■CHAPTER 7 JavaScript and CSS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
■CHAPTER 8 Improving Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
■CHAPTER 9 Building an Image Gallery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
PART 4
■ ■ ■
Ajax
■CHAPTER 10 Introduction to
Ajax
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
215
■CHAPTER 11 Enhancing Blogs with Ajax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
■CHAPTER 12 Autocomplete Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
■CHAPTER 13 An Ajax Wiki . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
iii
7273fmfinal.qxd 11/16/06 8:02 AM Page iii
www.ebooks.org.in
PART 5
■ ■ ■
The Future of JavaScript
■CHAPTER 14 Where Is JavaScript Going? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
PART 6
■ ■ ■
Appendixes
■APPENDIX A DOM Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
■APPENDIX B Events Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
■APPENDIX C The Browsers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
■INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
7273fmfinal.qxd 11/16/06 8:02 AM Page iv
www.ebooks.org.in
剩余379页未读,继续阅读
资源评论
github_17418725
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功