About this product: Professional Ajax 2nd Edition provides a developer-level tutorial of Ajax techniques, patterns, and use cases. The book begins by exploring the roots of Ajax, covering how the evolution of the web and new technologies directly led to the development of Ajax techniques. A detailed discussion of how frames, JavaScript, cookies, XML, and XMLHttp requests (XHR) related to Ajax is included. After this introduction, the book moves on to cover the implementation of specific Ajax techniques. Request brokers such as hidden frames, dynamic iframes, and XHR are compared and contrasted, explaining when one method should be used over another. To make this discussion clearer, a brief overview of HTTP requests and responses is included.
Once a basic understanding of the various request types is discussed, the book moves on to provide in-depth examples of how and when to use Ajax in a web site or web application. Different data transmission formats, including plain text, HTML, XML, and JSON are discussed for their advantages and disadvantages. Also included is a discussion on web services and how they may be used to perform Ajax techniques. Next, more complex topics are covered. A chapter introducing a request management framework explores how to manage all of the requests inside of an Ajax application. Ajax debugging techniques are also discussed.
The last part of the book walks through the creation of two full-fledged Ajax web applications. The first, FooReader.NET, is an Ajax-powered RSS reader. The second, called AjaxMail, is an Ajax-enabled email system. Both of these applications incorporate many of the techniques discussed throughout the book.
Professional Ajax 2nd edition is written for Web application developers looking to enhance the usability of their web sites and web applications and intermediate JavaScript developers looking to further understand the language. Readers should have familiarity with XML, XSLT, Web Services, PHP or C#, HTML, CSS. This book is not aimed at beginners without a basic understanding of the aforementioned technologies. Also, a good understanding of JavaScript is vitally important to understanding this book. Those readers without such knowledge should instead refer to books such as Beginning JavaScript, Second Edition (Wrox, 2004, ISBN: 978-0-7645-5587-9) and Professional JavaScript for Web Developers (Wrox, 2005, ISBN: 978-0-7645-7908-0).
Professional Ajax 2nd edition adds nearly 200 pages of new and expanded coverage compared to the first edition. Some of the new topics covered here include:
Ajax Libraries including the Yahoo! Connection Manager, Prototype, and jQuery
Request Management with Priority Queues and the RequestManager Object
Comet push-based web systems and HTTP streaming
Maps and Mashups with Geocoding, Google Maps API and Yahoo! Maps API
Ajax Debugging with FireBug and Microsoft Fiddler
ASP.NET AJAX Extensions (formerly code-named "Atlas")
And of course the Second Edition retains and updates the core first edition content including:
the range of request brokers (including the hidden frame technique, iframes, and XMLHttp) and explains when one should be used over another
different Ajax techniques and patterns for executing client-server communication
Ajax patterns including predictive fetch, page preloading, submission throttling, incremental field and form validation, periodic refresh, multi-stage download and more
Syndication with RSS, Atom, and XParser
JSON and creating an autosuggest textbox example
web site widgets for a news ticker, weather information, web search, and site search
Ajax Frameworks JSpan, DWR, and Ajax.NET Professional
A Web-based RSS/Atom aggregator case study
An AjaxMail case study
This book is also available as part of the 4-book JavaScript and Ajax Wrox Box (ISBN: 0470227818). This 4-book set includes:
Professional JavaScript for Web Developers (ISBN: 0764579088)
Professional Ajax 2nd edition (ISBN: 0470109491)
Professional Web 2.0 Programming (ISBN: 0470087889)
Professional Rich Internet Applications: Ajax and Beyond (ISBN: 0470082801)
Is Ajax a new technology, or the same old stuff web developers have been using for years? Both, actually. This book demonstrates not only how tried-and-true web standards make Ajax possible, but how these older technologies allow you to give sites a decidedly modern Web 2.0 feel. Ajax: The Definitive Guide explains how to use standards like JavaScript, XML, CSS, and XHTML, along with the XMLHttpRequest object, to build browser-based web applications that function like desktop programs. You get a complete background on what goes into today's web sites and applications, and learn to leverage these tools along with Ajax for advanced browser searching, web services, mashups, and more. You discover how to turn a web browser and web site into a true application, and why developing with Ajax is faster, easier and cheaper. The book also explains: How to connect server-side backend components to user interfaces in the browser Loading and manipulating XML documents, and how to replace XML with JSON Manipulating the Document Object Model (DOM) Designing Ajax interfaces for usability, functionality, visualization, and accessibility Site navigation layout, including issues with Ajax and the browser's back button Adding life to tables & lists, navigation boxes and windows Animation creation, interactive forms, and data validation Search, web services and mash-ups Applying Ajax to business communications, and creating Internet games without plug-ins The advantages of modular coding, ways to optimize Ajax applications, and more This book also provides references to XML and XSLT, popular JavaScript Frameworks, Libraries, and Toolkits, and various Web Service APIs. By offering web developers a muchbroader set of tools and options, Ajax gives developers a new way to create content on the Web, while throwing off the constraints of the past. Ajax: The Definitive Guide describes the contents of this unique toolbox in exhaustive detail, and explains how to get the most out of it.
ASP.NET revolutionized Web application development. The platform handles many of the complexities of creating Web applications. Now ASP.NET AJAX takes the development platform even further. The lines between rich client applications and traditionally less interactive browser-based applications are being further blurred with the use of this technology.
The ASP.NET AJAX Library brings object-oriented programming to JavaScript development for modern browsers, and the ASP.NET AJAX Extensions makes it easy to write rich Web applications that communicate with the Web server asynchronously. Again, the complexities are made easy by using ASP.NET.
The new server controls that are part of ASP.NET AJAX make it simple to designate parts of the page to be updated automatically without making the user pause and wait while the data is refreshed. You can have partial page updates without writing a single line of code. Other new controls let you alert the user that background work is happening and designate regular intervals at which updates occur. In addition, the ASP.NET AJAX Control Toolkit makes it easy to make your user interface really come to life with animations, modal dialogs, transition effects, and more.
Ajax is definitely the hot buzzword in the Web application world at the moment. Ajax is an acronym for Asynchronous JavaScript and XML and, in Web application development, it signifies the capability to build applications that make use of the XMLHttpRequest object.
The creation and the inclusion of the XMLHttpRequest object in JavaScript and the fact that most upper-level browsers support the use of this object led to creation of the Ajax model. Ajax applications, although they have been around for a few years, gained greater popularity after Google released a number of notable, Ajax-enabled applications such as Google Maps and Google Suggest. These applications demonstrated the value of Ajax.
Shortly thereafter, Microsoft released a beta for a new toolkit that enabled developers to incorporate Ajax features in their Web applications. This toolkit, code-named Atlas and later renamed ASP.NET AJAX, makes it extremely simple to start using Ajax features in applications today.
Prior to Visual Studio 2008, the ASP.NET AJAX product used to be a separate application that developers were required to install on their machine and the Web server that they were working with. This release gained in popularity quite rapidly and has now been made a part of the Visual Studio 2008 offering. Not only is it a part of the Visual Studio 2008 IDE, the ASP.NET AJAX product is also baked into the .NET Framework 3.5. This means that in order to use ASP.NET AJAX, developers are not going to need to install anything if they are working with ASP.NET 3.5.
Overall, Microsoft has fully integrated the entire ASP.NET AJAX experience in that developers can easily use Visual Studio and its visual designers to work with your Ajax-enabled pages and even have the full debugging story that they would want to have with their applications. Using Visual Studio 2008, developers are now able to debug straight into the JavaScript that they are using in the pages.
In addition, it is important to note that Microsoft focused a lot of attention on cross-platform compatibility with ASP.NET AJAX. Developers will find that the Ajax-enabled applications that they build upon the .NET Framework 3.5 are able to work within all the major up-level browsers out there (e.g., FireFox and Opera).
This book is aimed at experienced ASP.NET developers looking to add AJAX to their applications, and experienced Web developers who want to move to using ASP.NET and AJAX together.
In this book, I assume that you already have an understanding of how ASP.NET works. For an in-depth discussion of ASP.NET, I recommend Professional ASP.NET 3.5 by Bill Evjen, et al. (Wrox, 2008). The focus here is on how you can extend ASP.NET applications to update portions of the page asynchronously and to add richer UI elements to a page. ASP.NET AJAX makes it easy to enrich your existing application or to design a new application to provide a better experience for users. The differences among modern browsers have been abstracted, allowing you to write to a common set of APIs and trust that the user will get the correct behavior whether they are using Internet Explorer, Firefox, or Safari.
If you know how to author ASP.NET pages, you can easily start using the Microsoft AJAX library to manipulate the browser’s Document Object Model and communicate with the server to update the user’s view of data without forcing them to wait for the entire page to be refreshed.
This book covers ASP.NET 3.5 AJAX. It does not cover ASP.NET 3.5, on which ASP.NET AJAX is built. The examples lead you from the core of what is included in the ASP.NET AJAX Library through the core controls you would first start using. You build on that using the core JavaScript library and the ASP.NET AJAX Toolkit before covering debugging, deployment, and custom control development.
The ASP.NET 3.5 release includes the Microsoft AJAX Library as well as the server controls that can be used in ASP.NET pages to extend applications, making them more rich and interactive. It does so by leveraging the ASP.NET AJAX Library, which is JavaScript that runs in the browser. The server controls and JavaScript Library work together to let you update HTML with data obtained asynchronously from the server. The ASP.NET application services are exposed to JavaScript classes in the ASP.NET AJAX Library, making authentication and personalization accessible from the browser.
Chapter 1 introduces you to ASP.NET AJAX. This book discusses the need for AJAX Libraries and explain how ASP.NET AJAX compares to other AJAX Libraries. You will see how ASP.NET AJAX is composed of client and server pieces and that you can use the client library with any server platform you choose. In Chapter 2, the focus is on the most popular and easily applied feature of ASP.NET, the UpdatePanel control. This control allows you to automatically update portions of a page asynchronously, without subjecting the user to a visible pause while the page refreshes. Chapters 3 and 4 give you some key information about working with JavaScript and how the ASP.NET AJAX Library makes development with JavaScript easier. The book then works through several key features, including control of script resources and working with the ScriptManager control in Chapter 5, the new ASP.NET 3.5 ability to work with the back button in Chapter 6, and the ASP.NET AJAX Toolkit in Chapter 7 and all it has to offer for creating rich user interfaces. The next chapter, Chapter 8, looks at how to use ASP.NET’s application services (such as the Membership and Role management systems) with ASP.NET AJAX. Chapter 9 looks at networking objects. Chapter 10 looks at working with animations in ASP.NET AJAX. Chapter 11 shows you how to develop custom AJAX controls. Chapters 12, 13, and 14 shows the reader how to incorporate Ajax in some other ASP.NET core features such as Web Parts, localization, and state management. Chapter 15 looks at what is required to test and debug Ajax applications, and finally, Chapter 16 explores how to deploy ASP.NET AJAX applications.
About this product: Rethink the way you plan, design, and build Web applications with expert guidance from Web development luminary Dino Esposito. Whether giving legacy sites a much-needed tune-up or architecting rich Internet applications from the ground up you ll learn pragmatic approaches to AJAX development that you can employ today. Discover how to: Delve into the mechanics and design goals of partial rendering such as improving page-refresh speed Use AJAX-enabled server controls to bring desktop-like functionality to Web solutions Apply design patterns to common Web development issues, including client-side data binding Manipulate JavaScript more easily using the jQuery and Microsoft AJAX libraries Examine the interoperability and security models in Microsoft Silverlight Weigh the tradeoffs when architecting Web applications for richness (Silverlight) vs. reach (AJAX) and deliver the right solution for your audience
Ajax is no longer an experimental approach to website development, but the key to building browser-based applications that form the cornerstone of Web 2.0. Head First Ajax gives you an up-to-date perspective that lets you see exactly what you can do -- and has been done -- with Ajax. With it, you get a highly practical, in-depth, and mature view of what is now a mature development approach. Using the unique and highly effective visual format that has turned Head First titles into runaway bestsellers, this book offers a big picture overview to introduce Ajax, and then explores the use of individual Ajax components -- including the JavaScript event model, DOM, XML, JSON, and more -- as it progresses. You'll find plenty of sample applications that illustrate the concepts, along with exercises, quizzes, and other interactive features to help you retain what you've learned. Head First Ajax covers: The JavaScript event model Making Ajax requests with XMLHTTPREQUEST objects The asynchronous application model The Document Object Model (DOM) Manipulating the DOM in JavaScript Controlling the browser with the Browser Object Model XHTML Forms POST Requests XML Syntax and the XML DOM tree XML Requests & Responses JSON -- an alternative to XML Ajax architecture & patterns The Prototype Library
The book also discusses the server-side implications of building Ajax applications, and uses a "black box" approach to server-side components. Head First Ajax is the ideal guide for experienced web developers comfortable with scripting -- particularly those who have completed the exercises in Head First JavaScript -- and for experienced programmers in Java, PHP, and C# who want to learn client-sideprogramming.
About this product: Ajax is at the heart of the Web 2.0 revolution. It isn't a technology but, rather, is a technique that leverages other technologies and techniques, such as CSS, XML, DHTML, and XHTML. Many Web designers and programmers would like to incorporate Ajax in their projects because of the amazing functionality it can add to a Web site, but they can't because of the steep learning curve. That's where this book steps in. It makes learning Ajax fun and easy -- a great place to start! Visual QuickProject Guides focus on a single project. In this case the project is creating a business employee directory, like an address book. What's being created is a better, new kind of Web site.
Dreamweaver CS4 is a massive step forward in terms of integration with the rest of the CS4 suite (Flash, Fireworks, Photoshop, etc.), and also includes a whole host of exciting new features of its own. The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP concentrates on getting the best out of Dreamweaver CS4, rather than going into every menu item and toolbar icon. The emphasis is on developing websites compliant with the latest web standards, using CSS, JavaScript libraries (with particular emphasis on Spry, Adobe's implementation of Ajax), and PHP.
The book covers all aspects of the new user interface, including workspace layouts, iconic panels, the related documents feature, Live View, Code Navigator, and Live Code. It also shows how to use the improved CSS editing features, and JavaScript code introspection. There is also coverage of other new features, such as version control through Subversion integration, and the improved support for Photoshop integration through the use of Smart Objects.
What you'll learn
Streamline your workflow with the Related Files toolbar, Live view, and the Code Navigator
Bring your pages alive with Ajax widgets from Spry, jQuery, and the Yahoo! User Interface Library
Use server-side includes, templates, and Adobe's InContext Editing online service
Create dynamic web applications using Dreamweaver's PHP server behaviors
Build real world web site functions, such as form validation, random quote generator, search function, user management/login pages, dynamic Ajax gallery, and much more
Step-by-step guide reveals best practices for enhancing Web sites with Ajax
A step-by-step guide to enhancing Web sites with Ajax.
Uses progressive enhancement techniques to ensure graceful degradation (which makes sites usable in all browsers).
Shows readers how to write their own Ajax scripts instead of relying on third-party libraries.
Web site designers love the idea of Ajax--of creating Web pages in which information can be updated without refreshing the entire page. But for those who aren't hard-core programmers, enhancing pages using Ajax can be a challenge. Even more of a challenge is making sure those pages work for all users. In Bulletproof Ajax, author Jeremy Keith demonstrates how developers comfortable with CSS and (X)HTML can build Ajax functionality without frameworks, using the ideas of graceful degradation and progressive enhancement to ensure that the pages work for all users. Throughout this step-by-step guide, his emphasis is on best practices with an approach to building Ajax pages called Hijax, which improves flexibility and avoids worst-case scenarios.
Enhance the user experience of your PHP website using AJAX with this practical tutorial featuring detailed case studies
Build a solid foundation for your next generation of web applications
Use better JavaScript code to enable powerful web features
Leverage the power of PHP and MySQL to create powerful back-end functionality and make it work in harmony with the smart AJAX client
Go through numerous case studies that demonstrate how to implement AJAX-enabled features in your site such as: real-time form validation, online chat, suggest & autocomplete, whiteboard, SVG realtime charting, whiteboard, web data grid, RSS reader, drag & drop
In Detail
Assuming a basic knowledge of PHP, XML, JavaScript and MySQL, this book will help you understand how the heart of AJAX beats and how the constituent technologies work together. After teaching the foundations, the book will walk you through numerous real-world case studies covering tasks you'll be likely to need for your own applications:
Server-enabled form-validation page
Online chat collaboration tool
Customized type-ahead text entry solution
Real-time charting using SVG
Database-enabled, editable and customizable data grid
RSS aggregator application
A server-managed sortable list with drag&drop support using the script.aculo.us JavaScript toolkit
The appendices guide you through installing your working environment, using powerful tools that enable debugging, improving, and profiling your code, working with XSLT and XPath.
What you will learn from this book?
AJAX and PHP: Building Responsive Web Applications is the most practical and efficient resource a reader can get to enter the exciting world of AJAX. This book will teach you how to create faster, lighter, better web applications by using the AJAX ingredients technologies to their full potential.
Who this book is written for?
This book is for web developers willing to build better web applications. A basic knowledge of PHP, XML, JavaScript and MySQL, or a strong will to learn-as-you-type, is assumed.
Delivering rich, Web 2.0-style experiences has never been easier. This book gives you a complete hands-on introduction to Microsoft ASP.NET AJAX 1.0, the new framework that offers many of the same benefits for Ajax development that ASP.NET provides for server-side development. With Programming ASP.NET AJAX, you'll learn how to create professional, dynamic web pages with Ajax in no time. Loaded with code and examples that demonstrate key aspects of the framework, this book is ideal not only for ASP.NET developers who want to take their applications a step further with Ajax, but for any web developers interested in ASP.NET AJAX, no matter what technology they use currently. That includes JavaScript programmers who would like to avoid the headaches of writing cross-browser code. Programming ASP.NET AJAX offers you: A high-level overview of the ASP.NET AJAX framework Functional code that you can cut and paste for use in your own applications The essentials of JavaScript and Ajax to help you understand individual technologies used by the framework An organization that reflects the framework's packages, including Extensions, Control Toolkit, the Futures CTP, and the AJAX Library Sidebars throughout the book that identify and propose solutions to potential security breaches Ways to use the standards-based AJAX Library with other platforms, such as PHP A complete chapter on the UpdatePanel control for making individual parts of a web page independently updateable -- one of the framework's most important elements Released previously as Programming Atlas to cover the beta version of the Microsoft framework, this edition is fully up-to-date and expanded for the official 1.0 release of ASP.NETAJAX. Written by Christian Wenz -- Microsoft MVP for ASP/ASP.NET and AJAX Control Toolkit Contributor -- Programming ASP.NET AJAX contains many hard-to-find details, along with a few unofficial ways to accomplish things.