- ホーム
- > 洋書
- > 英文書
- > Computer / Languages
Full Description
AJAXAlready an experienced Web developer? Apply your skills in today's fastest-growing area of Web development: AJAX! Building on what you already know, this fast-paced guide will show you exactly how to create rich, usable Internet applications. Joshua Eichorn teaches through sophisticated code examples, including extensive server-side PHP code. You won't just learn how to code AJAX applications: Eichorn covers the entire development lifecycle, from use cases and design through debugging. He also presents detailed application case studies, including a start-to-finish update of a non-AJAX application that addresses everything from feature improvements to changing usage patterns. Coverage includes:* How AJAX changes the conventional Web development cycle* Problems created by the AJAX paradigm -- and how to avoid them* Adding AJAX to existing Web applications: key considerations* Using core AJAX technologies, including the XMLHttpRequest object* Consuming data returned to an AJAX application using both XSLT and JSON* Building more usable AJAX applications: guidelines and downloadable resources* Use cases: solving real-world problems in the AJAX environment* Libraries and toolkits for simplifying AJAX development, including Sarissa, scriptaculous, and HTML_AJAX* A complete guide to AJAX debugging* Supporting browsers without XMLHttpRequest by using IFrames or cookies* JSON data encoding debugging guide, which covers tools for Firefox and Internet Explorer* A list of libraries, which includes PHP, .NET, Java, and other libraries that can be used with any server language
Contents
Understanding AJAXUsing JavaScript to Create Rich Internet ApplicationsJoshua Eichorn0132216353PART IChapter 1 What Is AJAX?1.1 Rich Internet Applications1.2 AJAX Defined 1.3 Technologies of AJAX1.4 Remote Scripting1.5 Gmail Brings XMLHttpRequest into the Mainstream1.6 New Name: AJAX 1.7 SummaryChapter 2 Getting Started2.1 XMLHttpRequest Overview2.1.1 XMLHttpRequest::Open()2.1.2 XMLHttpRequest::Send()2.1.3 XMLHttpRequest::setRequestHeader()2.1.4 XMLHttpRequest::getResponseHeader() and getAllResponseHeaders()2.1.5 Other XMLHttpRequest Methods2.1.6 XMLHttpRequest Properties2.1.7 readyState Reference2.2 Cross-Browser XMLHttpRequest2.3 Sending Asynchronous Requests2.4 AJAX Without XMLHttpRequest2.5 Fallback Option 1: Sending a Request Using an IFrame2.5.1 Creating a Hidden IFrame2.5.2 Creating a Form2.5.3 Send Data from the Loaded Content to the Original Document2.5.4 Complete Iframe AJAX Example2.6 Fallback Option 2: Sending a Request Using a Cookie2.7 SummaryChapter 3 Consuming the Sent Data3.1 Document-Centric Approaches3.1.1 Adding New HTML Content to a Page with AJAX3.1.2 Consuming XML Using DOM3.1.3 Consuming XML Using XSLT3.2 Remote Scripting3.2.1 Basic RPC3.2.2 SOAP and XML-RPC3.2.3 Custom XML3.2.4 JavaScript and JSON3.3 How to Decide on a Request Type3.4 SummaryChapter 4 Adding AJAX to Your Web Development Process4.1 Changes to the Development4.1.1 Enhancement-Driven Changes4.1.2 AJAX in Action: Removing a Popup User Search4.1.3 Changes Caused by Creating an AJAX-Driven Application4.2 Integrating AJAX into a Framework4.3 JavaScript as a Primary Development Language4.4 Problems Created by the New Development Paradigm4.5 Advantages to Using a Library4.6 Reasons to Build Your Own Library4.7 How Open Source Fits into the Mix4.7.1 Evaluating an Open Source Library4.7.2 Open Source Libraries in Relation to Commercial Libraries4.8 Use Case for Building: The Firefox Counter4.9 Use Case for Downloading: An Intranet Web Site4.10 SummaryChapter 5 Getting the Most from AJAX5.1 Goals of AJAX5.1.1 Increasing Interactivity5.1.2 Decreasing the Time Required to Perform Actions5.1.3 Reducing Bandwidth Use5.1.4 Creating Rich Applications5.2 Measuring Improvements5.3 Promises and Problems of Combining AJAX with Other New Technologies5.3.1 Combining AJAX with Flash5.3.2 Scalable Vector Graphics (SVG)5.3.3 XML User Interface Languages5.4 SummaryChapter 6 Usability Guidelines6.1 Defining Usability6.2 Usability Guidelines6.2.1 Keep the User's Expectations in Mind6.2.2 Provide Feedback to Actions6.2.3 Maintain the User's Focus When Adding Content6.2.4 Keep the Ability to Undo Actions6.2.5 Know If You Are Developing an Application or a Web Site6.2.6 Only Use AJAX Where It Has the Greatest Effect6.2.7 Have a Plan for Those Users Without XMLHttpRequest6.3 Common Usability Problems6.3.1 Stealing Focus with Validation Messages6.3.2 Preventing Undo with Autosave6.3.3 Updating Sections of a Page Withoutthe User Realizing It6.3.4 Breaking Bookmarking by Using AJAX to Load Entire Pages6.3.5 Making AJAX Required on a Web Store6.4 SummaryChapter 7 AJAX Debugging Guide7.1 Two Sides to Debugging7.2 Looking at AJAX Communications7.2.1 Building an AJAX Logger7.2.2 Using the Logger7.2.3 Firebug: A Firefox Debugging Extension7.2.4 Fiddler7.2.5 General Debugging Scenarios7.3 JavaScript Debugging Tools7.4 JavaScript Exceptions7.5 Dumping Variables7.6 SummaryPART IIChapter 8 Libraries Used in Part II: Sarissa, Scriptaculous8.1 Overview of the Use Cases8.2 Libraries Used in Part II of This Book8.3 Sarissa8.3.1 Installation8.3.2 Making an AJAX Request8.3.3 Basic XML Features8.3.4 Working with DOM Documents8.3.5 Using XPath to Find Nodes in a Document8.3.6 Transforming XML with XSLT8.3.7 Sarissa Development Tips8.4 Scriptaculous8.4.1 Installation8.4.2 Visual Effects8.4.3 Hide/Show Pairs8.4.4 Drag-and-Drop8.4.5 Sortables8.4.6 Slider Control8.4.7 Scriptaculous Development Tips8.5 SummaryChapter 9 Libraries Used in Part II: HTML_AJAX9.1 HTML_AJAX9.1.1 Installation9.1.2 HTML_AJAX JavaScript API9.1.3 Remote Stub AJAX9.1.4 Using HTML_AJAX_Action9.1.5 JavaScript Behaviors9.1.6 JavaScript Utility Methods9.1.7 PHP Utility Methods9.1.8 HTML_AJAX Development Tips9.2 SummaryChapter 10 Speeding Up Data Display10.1 Overview of the Sun Rise and Set Data Viewer10.2 Building the Non-AJAX Version of the Sun Rise and Set Viewer10.2.1 SunRiseSet Class10.2.2 Graph.php10.2.3 Standard.php10.3 Problems with the Non-AJAX Viewer10.4 Improving Viewing with AJAX10.4.1 Viewer HTML Updated for AJAX10.4.2 Viewer PHP Script Updated for AJAX10.5 SummaryChapter 11 Adding an AJAX Login to a Blog11.1 Why Logins Work Well with AJAX11.2 Building an AJAX Login11.3 Extending the Login Form11.4 Implementing the AJAX Comment Login System Using XML11.5 SummaryChapter 12 Building a Trouble-Ticket System12.1 Trouble-Ticketing System12.2 AJAX Reliance Scale 12.3 Creating the Back End12.4 Exporting the Back End12.5 Building the JavaScript Application12.6 Login Component12.7 User-Registration Component12.8 Account-Editing Component12.9 Ticket-Creation Component12.10 Ticket-Editor Component12.11 My-Tickets Component12.12 Assign-Tickets Component12.13 Security Considerations with AJAX Applications12.14 Comparing Our AJAX-Driven Application against a Standard MVC Model12.15 SummaryAppendix A JavaScript AJAX LibrariesAJAX ToolboxBajaxDojo ToolkitlibXmlRequestMochiKitRicoSimple AJAX Code-Kit (SACK)ThyAPIQooxdooXHConnYahoo! User Interface LibraryAppendix B AJAX Libraries with Server TiesPHPAjaxACHTML_AJAXPAJAJTinyAjaxXajaxXOADJavaAjaxTagsDirect Web Remoting (DWR)Google Web ToolkitZKC#/.NETAjax.NETAnthem.NETAtlasMagicAJAX.NETMultiple LanguagesCPAINTRialtoSAJAXAppendix C JavaScript DHTML LibrariesAccesskey Underlining Library (AUL)BehaviourcssQuery()Dean Edwards IE7DOM-DragJavaScript ShellLightbox JSMoo.fxNifty Corners CubeoverLIBSorttableTooltip.jsWZ_jsgraphicsWZ_dragdrop