
Practical Apache Struts 2 Web 2.0 Projects (Practical Projects)

| * Ajax (Asynchronous JavaScript CSS DOM XMLHttpRequest) combines existing Web technologies into a single platform that allows developers to create rich Web applications that are very fast and look more like desktop applications * Major Web players are already using Ajax to create a new generation of Web applications, including Google (Ajax is behind Google Maps, Google Suggest, and Google Groups), Amazon, and Yahoo! * Our book shows Web developers step by step how to get up and running with the Ajax development platform and application architecture * Topics covered include creating JavaScript effects, styling with CSS, using the XMLHttpRequest object to fetch data, working with Ajax design patterns, harnessing Ajax toolkits, and server-side scripting with PHP and JSP * The companion CD-ROM includes all code from the book, XML tools, and usable Ajax applications |


Ajax and REST Recipes: A Problem-Solution Approach will serve all of your Ajax needs, by providing adaptable solutions for common tasks you'll want to implement on web sites using the next generation of Ajax and REST techniques. As a JavaScript developer, your time is precious, so you'll want to solve problems that present themselves in your work as quickly as possible. You can pick up the code provided in this book, adapt it, or plug it straight into your own applications.
The book mainly focuses on illustrating and explaining how to build applications that use JavaScript, Ajax, and REST Web Services, along with some user interface issues. Specifically, the following topics are covered: implementing JavaScript unit tests; explaining the intent of Dynamic Languages, Web Services and SOA; defining and implementing contracts using REST; understanding why JavaScript Functions have state; implementing JavaScript "Generics", which are a mixture between real Generics and a replacement algorithm; using code blocks; using functions to make decisions; understanding the difference of JavaScript code that behaves like a value type or a reference type; implementing proxies, delegates, mixins, and overloaded functions; implementing a complete Ajax and Web Service architecture; defining a Web Service using REST; handling large or slow or real-time data sets; implementing shopping cart type architectures; and solving the back button problem using Ajax.
Having read this book you will learn how to modularize your web application by decoupling the client from the server. The decoupling allows a client developer to focus on writing the best JavaScript and Ajax code, and a server developer to write the best business and data objects.


If you're a web developer with previous JavaScript and DOM scripting experience, Accelerated DOM Scripting with Ajax, APIs, and Libraries is perfect for you to take your knowledge up to the next level.
This book is about JavaScript and using the document object model—the conduit to the HTML document. This book is not about learning how to program JavaScript from scratch. It starts with the assumption that you have done some JavaScript development before and understand the JavaScript syntax. This book builds on top of that knowledge to give you a deeper understanding of DOM Scripting and how to apply that to your projects. It uses this new understanding to describe what JavaScript libraries are and show you how they can be applied to your project. The book will also explain Ajax and how best to plan and apply it to your projects. It explains how to build simple animation objects for adding movement to elements on the page. There are straightforward examples that demonstrate the techniques used throughout the book.
JavaScript has seen a resurgence in popularity over the past few years, and with it has come an exploration of the power of the language as well as what it can do within the browser. This book will explain techniques new and old—such as closures, encapsulation, and inheritance—that many are using and how you can best apply them to your own projects.
By reading this book, you should have a greater understanding of how JavaScript works and be able to use advanced concepts such as closures and event delegation to build more flexible applications for the Web. You'll walk away with a greater appreciation for JavaScript libraries and how they can simplify and speed up your development. You'll also be able to implement Ajax effectively into your site, create special effects, use JavaScript libraries, and know how best to apply these libraries to your projects.
This book is for beginner to intermediate developers, and already have knowledge of HTML, CSS, and JavaScript.