Ajax宝典 Ajax Bible

分類: 图书,进口原版书,计算机 Computers & Internet ,
作者: Steve,Ph.D. Holzner 著
出 版 社: John Wiley & Sons
出版时间: 2007-8-1字数:版次: 1页数: 695印刷时间: 2007/08/01开本:印次:纸张: 胶版纸I S B N : 9780470102633包装: 平装内容简介
If you think that mastering Ajax is too difficult, guess again. You can create Web applications that look and feel like desktop apps in less time than you think with the comprehensive Ajax instruction in this in-depth book. You'll find easy-to-follow tutorials, hundreds of tips and tricks, and so much practical information that even skilled developers will reach for this book first. Let this Bible be your guide as you jump into the hottest Web programming technology in years.
Master the fundamentals—JavaScript®, XML, dynamic HTML, and CSS;
Tie Ajax into Google with the Google® API;
Handle simultaneous XMLHttpRequest objects in Ajax;
Use Ajax frameworks such as Ruby on Rails, AjaxTags, and others;
Understand the Document Object Model (DOM);
Create floating menus and effects with CSS;
Encrypt data over plain HTTP using JavaScript;
Adapt real-world examples to your own programs.
作者简介:
Steven Holzner, PhD,is the author of nearly 100 technology books including Ajax For Dummies and the Ajax Visual Blueprint. He specializes in writing about online applications, and has authored popular books on the components of Ajax including JavaScript, XML, browser objects, and Web services. He teaches classes to programmers around the country on the central skill in Ajax—using XML online and in-depth. He has been a contributing editor to PC Magazine, and was on the faculty at Cornell University and MIT.
目录
Preface
Acknowledgments
Part Ⅰ: Fundamental Ajax
Chapter 1: Essential Aiax
What Does "Ajax" Mean?
What Can You Do with Ajax?
Create Ajax live searches
Create an Ajax-enabled calculator
Talk with Ajax chat applications
Crunch numbers with spreadsheets
Browse Amazon
Get the answer with Ajax autocomplete
Log in with Ajax
Download images
Drag and drop with Ajax
Play games with Ajax
Modify Web pages on the fly
Add interactivity to maps
F-mail the Ajax way
Summary
Chapter 2: Know Your JavaScript
What Is JavaScript's Place in Ajax?
A Brief History of JavaScript
Getting Started with JavaScript
Fixing errors
Commenting your code
Putting your code in external script files
Responding to browser events
Creating JavaScript Functions
Passing arguments to functions
Returning values from functions
Storing Your Data in Variables
Operating on Your Data with Operators
Making Decisions with the If Statement
Executing Different Code in Different Browsers
Working with Loops
Looping with the for loop
Looping with the while loop
Connecting JavaScript to HTML Buttons
Summary
Chapter 3: Creating Ajax Applications
Writing Ajax
Setting up the application
Writing the JavaScript
Creating an XMLHttpRequest object
Opening the XMLHttpRequest object
Handling data downloads
Getting your data
Downloading the data
More ways to create XMLHttpRequest objects
Interacting with Server-Side Code
Passing Data to ServeSide Scripts
Passing data to the server with GET
Passing data to the server with POST
Using Ajax with XML
Creating the XML
Downloading the XML
Summary
Chapter 4: Serious Ajax Programming
Working with Multiple Concurrent XMLHttpRequest Requests
Using multiple XMLHttpRequest objects
Storing XMLHttpRequest objects in an array
Using inner functions
Handling JavaScript Sent from the Server
Returning JavaScript
Returning JavaScript objects
Connecting to Google Suggest
Calling Another Domain in Ajax
A Login Example
Working with Ajax and Head Requests
Getting all head data
Getting specific head data
Eliminate Caching
Summary
Part Ⅱ: Ajax in Depth
Chapter 5: Introducing Ajax Frameworks
Chapter 6: More Advanced Ajax Frameworks
Chapter 7: Using Server-Side Ajax Frameworks
Part Ⅲ: Ajax and the DOM, XML, CSS, and Dynamic HTML
Chapter 8: The DOM and Event Handling
Chapter 9: XML and Ajax
Chapter 10: Cascading Style Sheets and Ajax
Chapter 11: Dynamic HTML and Ajax
Part Ⅳ: Advanced Ajax
Chapter 12: Introducing Ajax and PHP
Chapter 13: PHP: Functions and HTML Controls
Chapter 14: Handling User Input in PHP
Chapter 15: Ajax and Security
Chapter 16: Filters, MVC, and Ajax
Index