Summary
The practicing programmer's DEITEL reg; guide to AJAX, Rich Internet Applications, and web-application developmentThis book applies the Deitel signature live-code approach to teaching Web 2.0 application development. The book presents concepts in the context of more than 180 fully tested programs (18,000+ lines of code), complete with syntax shading, detailed descriptions, and sample outputs. It features hundreds of tips that will help you build robust applications.Start with a concise introduction to XHTML, CSS, and JavaScript before rapidly moving on to more advanced client-side development with DOM, XML, AJAX, JSON, and other RIA technologies. Then proceed to server-side development with web servers, databases, PHP, Ruby on Rails, ASP.NET, JavaServer Faces, and web services. When you're finished, you'll have everything you need to build Web 2.0 applications.The DEITEL Developer Series is designed for practicing programmers. The series presents focused treatments of emerging technologies, including .NET, Java TM , web services, Internet and web development, and more.Practical, example-rich coverage of: Web 2.0 XHTML, CSS, JavaScript DOM, XML, RSS AJAX-Enabled Rich Internet Applications JSON, Dojo, Script.aculo.us Adobe reg; Flash CS3 and Flex Web Servers (IIS and Apache) Database (SQL, MySQL, ADO.NET and Java DB) PHP, Ruby on Rails ASP.NET, ASP.NET AJAX JavaServer Faces (JSF) SOAP-Based Web Services in Java REST-Based Web Services in ASP.NET Mashups And more...Visit www.deitel.com to: Download code examples Check out the growing list of programming, Web 2.0, and software-related Resource Centers To receive updates on this book, subscribe to the free DEITEL reg; BUZZ ONLINE e-mail newsletter at www.deitel.com/newsletter/subscribe.html Read archived Issues of the DEITEL BUZZ ONLINE Contact deitel@deitel.com for information on corporate training courses delivered on-site worldwide Pre-Publication Reviewer Testimonials "This book is easily the most comprehensive resource of its kind I've seen yet." --Jesse James Garrett, Adaptive Path "A one-stop shop for learning the essentials of web programming." --Anand Narayanaswamy, ASPAlliance.com "Excellent for learning to develop standards-compliant web applications...takes you from the browser to the server and the database, covering web development across many programming languages." --Paul Vencill, MITRE, Inc. "Cements the browser as a first-class development platform." --Johnvey Hwang, Splunk, Inc. "Congratulations on this excellent work. The [Dive Into Web 2.0] chapter is simply astonishing! It's one of the better--if not the best--references on Web 2.0." --Joseacute; Antonio Gonzaacute;lez Seco, Parlamento de Andalucia "The CSS chapter is compact, concise, and full of useful info!" --Billy B. L. Lim, Illinois State University "One of the best introductions to JavaScript." --Raymond Wisman, Indiana University Southeast "A good introduction to the DOM; doesn't trip over cross-browser incompatibilities." --Eric Lawrence, Microsoft "Exceptionally clear Ajax tutorial; best I've reviewed! Great solutions for the very cool type-ahead and edit-in-place AJAX features. 'Libraries to Help Eliminate Cross-Browser Compatibility Issues'is fantastic. This book and your web sites will be often-visited resources (if not best practices in themselves)." --John Peterson, Insync and V.I.O. Inc. "Great chapter [on building Flash games]." --Je
Author Biography
Paul J. Deitel and Dr. Harvey M. Deitel are the founders of Deitel & Associates, Inc., the internationally recognized programming languages content-creation, corporate-training and Internet business development organization. The Deitels have written many international best-selling programming languages textbooks that millions of people worldwide have used to master C, C++, Java™, C#, XML, Visual Basic®, Perl, Python, and Internet and web programming.
Table of Contents
Introduction | p. 1 |
Dive Into Web 2.0 | p. 2 |
The Ajax Client | p. 66 |
Introduction to XHTML | p. 67 |
Cascading Style Sheets (CSS) | p. 100 |
JavaScript: Introduction to Scripting | p. 131 |
JavaScript: Control Statements I | p. 153 |
JavaScript: Control Statements II | p. 174 |
JavaScript: Functions | p. 203 |
JavaScript: Arrays | p. 232 |
JavaScript: Objects | p. 256 |
Document Object Model (DOM): Objects and Collections | p. 298 |
JavaScript: Events | p. 323 |
XML and RSS | p. 347 |
Ajax-Enabled Rich Internet Applications | p. 411 |
Rich Internet Application Client Technologies | p. 451 |
Adobe Flash CS3 | p. 452 |
Adobe Flash CS3: Building an Interactive Game | p. 492 |
Adobe Flex 2 and Rich Internet Applications | p. 517 |
Rich Internet Application Server Technologies | p. 568 |
Web Servers (IIS and Apache) | p. 569 |
Database: SQL, MySQL, ADO.NET 2.0 and Java DB | p. 585 |
PHP | p. 606 |
Ruby on Rails | p. 652 |
ASP.NET 2.0 and ASP.NET Ajax | p. 700 |
JavaServer Faces Web Applications | p. 798 |
Ajax-Enabled JavaServer Faces Web Applications | p. 858 |
Web Services | p. 891 |
Index | p. 962 |
Table of Contents provided by Blackwell. All Rights Reserved. |
Excerpts
...the challenges are for the designers of these applications: to forget what we think we know about the limitations of the Web, and begin to imagine a wider, richer range of possibilities. It's going to be fun. --Jesse James Garrett, Adaptive Path "Ajax: A New Approach to Web Applications" ( adaptivepath.com/ideas/essays/archives/000385.php ) Introduction Welcome to Internet and web programming andWeb 2.0! And welcome to a walkthrough of the Web 2.0 phenomenon from the technical, business and social perspectives. We've worked hard to create what we hope you'll find to be an informative, entertaining and challenging learning experience. At Deitel & Associates, we write programming language professional books and textbooks for Prentice Hall, deliver corporate training worldwide and developWeb 2.0 Internet businesses. This book reflects today's Web 2.0, Ajax-based, Rich Internet Application-development methodologies. The technologies you'll learn here are appropriate for experienced professionals who build substantial information systems. You'll find "industrial-strength" code examples. We have attempted to write in a clear and straightforward manner using best practices. Perhaps most important, the book presents hundreds of working code examples and shows the outputs produced when these examples are rendered in browsers or run on computers. We present all concepts in the context of complete working programs.We call this the "live-code approach." All of the source code is available for download from www.deitel.com/books/ajaxfp/ under the heading "Download Code Examples and Other Premium Content for Registered Users," once you've registered and logged on to our site. The early chapters present a carefully paced introduction to "client-side" web programming, using the popular JavaScript language and the closely related technologies of XHTML (Extensible HyperText Markup Language), CSS (Cascading Style Sheets) and the DOM (Document Object Model). The material in the JavaScript chapters presents a solid foundation for the deeper treatment of scripting in the Adobe Flash, Adobe Flex, PHP and Ruby on Rails chapters later in the book. Experienced programmers will read the early chapters quickly and find the treatment of scripting in the later chapters to be rigorous and challenging. Today's users are accustomed to desktop applications with rich graphical user interfaces (GUIs), such as those used on Apple's Mac OS X systems, Microsoft Windows systems, various Linux systems and more. Users want applications that employ the multimedia capabilities of graphics, images, animation, audio and video. They want applications that can run on the Internet and the web and communicate with other applications. Users want to apply database technologies for storing and manipulating their business and personal data. They want applications that are not limited to the desktop or even to some local computer network, but that can integrate Internet and web components, and remote databases. Programmers want to use all these capabilities in a truly portable manner so that applications will run without modification on a variety of platforms. In this book, we present a number of powerful software technologies that will enable you to build these kinds of systems. Early in the book we focus on building the portions of web-based applications that reside on the client side (i.e., the portions of applications that typically run in web browsers such as Mozilla's Firefox or Microsoft's Internet Explorer), using technologies such as the XHTML, JavaScript, CSS, Flash, Flex and Extensible Markup Language (XML). Later in the book we concentrate on using technologies such as web