Bienvenue à la Bibliothèque Alo de l'Université Shalom de Bunia
A partir de cette page vous pouvez :
Retourner au premier écran avec les dernières notices... | Votre compte |
Titre : | Sams Teach Yourself Ajax, JavaScript, and PHP All in One |
Auteurs : | Phil Ballard |
Type de document : | document électronique |
Editeur : | [S.l.] : Sams Publishing, 2008 |
ISBN/ISSN/EAN : | 978-0-672-32965-4 |
Résumé : |
In just a short time, you can learn how to use Ajax, JavaScript, and PHP to create interactive interfaces to your web applications by combining these powerful technologies. No previous Ajax programming experience is required. Using a straightforward, step-by-step approach, each lesson in this book builds on the previous ones, enabling you to learn the essentials of Ajax programming with JavaScript, PHP, and related technologies from the ground up. Regardless of whether you run Linux, Windows, or Mac OS X, the enclosed CD includes a complete Ajax programming starter kit that gives you all the programming tools, reference information, JavaScript libraries, and server software you need to set up a stable environment for learning, testing, and production. Learn how toÔǪ * Build better, more interactive interfaces for your web applications * Make JavaScript, HTML, XML, and PHP work together to create Ajax effects * Compile an Ajax application * Create and consume web services with SOAP and REST * Avoid common errors and troubleshoot programs * Use popular Ajax libraries to speed up and improve common programming tasks On the CD * XAMPP for Windows, Mac OS X, and LinuxÔÇöan easy-to-install package to set up a PHP- and MySQL-enabled Apache server on your computer * The jEdit programming editor for Windows, Mac, and Linux * Prototype, Scriptaculous, Rico, and XOADÔÇöpopular JavaScript libraries for creating Ajax applications and effects * A complete Ajax, HTML, XML, and PHP tutorial reference library in searchable PDF format * Source code for the examples in the book Phil Ballard is a software engineering consultant and developer specializing in website and intranet design and development for an international portfolio of clients. He has an honors degree from the University of Leeds, England, and has worked for several years in commercial and managerial roles in the high technology sector. Michael Moncur is a freelance webmaster and author. He runs a network of websites and has written several bestselling books about web development, networking, certification programs, and databases. Category:┬áWeb Development Covers:┬áAjax, JavaScript and PHP User Level:┬áBeginningÔÇôIntermediate┬á ### About the Author **Phil Ballard**, the author of *Sams Teach Yourself Ajax in 10 Minutes*, graduated in 1980 with an honors degree in electronics from the University of Leeds, England. Following an early career as a research scientist with a major multinational, he spent a few years in commercial and managerial roles within the high technology sector, later working full time as a software engineering consultant. Operating as ÔÇ£The Mouse WhispererÔÇØ (http://www.mousewhisperer.co.uk), Ballard has spent recent years involved solely in website and intranet design and development for an international portfolio of clients. **Michael Moncur **is a freelance webmaster and author. He runs a network of websites, including the WebÔÇÖs oldest site about famous quotations, online since 1994. He wrote *Sams Teach Yourself JavaScript in 24 Hours *and has also written several bestselling books about networking, certification programs, and databases. He lives with his wife in Salt Lake City, Utah. ### Excerpt. ┬® Reprinted by permission. All rights reserved. Introduction ## Introduction Over the last decade or so, the World Wide Web has grown in scope from being a relatively simple information repository to becoming the first stop for many people when seeking entertainment, education, news, or business resources. Websites themselves need no longer be limited to a number of static pages containing text and perhaps simple images; the tools now available allow the development of highly interactive and engaging pages involving animations, visual effects, context-sensitive content, embedded productivity tools, and much more. The list of technologies available for producing such pages is broad. However, those based on Open Source licenses have become, and remain, highly popular due to their typically low (often zero) entry cost, and to the huge resource of user-contributed scripts, tutorials, tools, and other resources for these tools and applications available via the Internet and elsewhere. In this book, we give a detailed account of how to program fluid, interactive websites using server- and client-side coding techniques and tools, as well as how to combine these to produce a slick, desktop-application-like user experience using Ajax. The programming languages used in this book include the ubiquitous JavaScript (for client-side programming) and the immensely popular open-source PHP language (for server-side scripting, and available with the majority of web-hosting packages). The nuts and bolts of Ajax programming are described in detail, as well as the use of several advanced open-source frameworks that contain ready-written code for quickly building state-of-the-art interactive sites. > * * * > > **Note -** The CD that accompanies this book provides all the tools required on your journey through learning to program in PHP, JavaScript, and Ajax. > > * * * ## What Is Ajax? Ajax stands for *Asynchronous JavaScript And XML*. Although strictly speaking Ajax is not itself a technology, it mixes well-known programming techniques in an uncommon way to enable web developers to build Internet applications with much more appealing user interfaces than those to which we have become accustomed. When using popular desktop applications, we expect the results of our work to be made available immediately, without fuss, and without our having to wait for the whole screen to be redrawn by the program. While using a spreadsheet such as Excel, for instance, we expect the changes we make in one cell to propagate immediately through the neighboring cells while we continue to type, scroll the page, or use the mouse. Unfortunately, this sort of interaction has seldom been available to users of web-based applications. Much more common is the experience of entering data into form fields, clicking on a button or a hyperlink and then sitting back while the page slowly reloads to exhibit the results of the request. In addition, we often find that the majority of the reloaded page consists of elements that are identical to those of the previous page and that have therefore been reloaded unnecessarily; background images, logos, and menus are frequent offenders. Ajax promises us a solution to this problem. By working as an extra layer between the user's browser and the web server, Ajax handles server communications in the background, submitting server requests and processing the returned data. The results may then be integrated seamlessly into the page being viewed, without that page needing to be refreshed or a new one being loaded. In Ajax applications, such server requests are not necessarily synchronized with user actions such as clicking on buttons or links. A well-written Ajax application may already have asked of the server, and received, the data required by the userÔÇöperhaps before the user even knew she wanted it. This is the meaning of the *asynchronous* part of the Ajax acronym. The parts of an Ajax application that happen "under the hood" of the user's browser, such as sending server queries and dealing with the returned data, are written in *JavaScript*, and *XML* is an increasingly popular means of coding and transferring formatted information used by Ajax to efficiently transfer data between server and client. We'll look at all these techniques, and how they can be made to work together, as we work through the chapters. ## Who This Book Is For This volume is aimed primarily at web developers seeking to build better interfaces for the users of their web applications and programmers from desktop environments looking to transfer their applications to the Internet. It also proves useful to web designers eager to learn how the latest techniques can offer new outlets for their creativity. Although the nature of PHP, JavaScript, and Ajax applications means that they require some programming, all the required technologies are explained from first principles within the book, so even those with little or no programming experience should be able to follow the lessons without a great deal of difficulty. ## How To Use This Book All the technologiesÔÇöincluding a refresher of WWW basicsÔÇöare explained from first principles, so that even non-programmers or those unfamiliar with these languages should be able to follow the development of the concepts with little problem. The book is divided into parts, each dedicated to a particular technology or discussion topic. Within each part, the chapters each specialize in a given aspect or subtopic. It should therefore be easy to follow the instructional flow of the book by a quick look through the table of contents. However, if you are already a competent programmer in one or more of the technologies usedÔÇöin PHP for instance, or in JavaScriptÔÇöthen feel free to speed-read or skip the sections that you don't need. To try out many of the examples you'll need access to a web server that supports PHP, and a means to upload files into your web space (probably FTP). Most web hosts include PHP in their hosting packages, or can do so on request at minimal or no cost. Alternatively, the CD that accompanies this book contains everything required to set up a web serving environment on your own computer. This package is called XAMPP, and it contains everything you need to develop fully functional, interactive websites like those described in this book, ready to be deployed to a web-based server at a later date if you so choose. Look out for the boxes marked "On the CD" as you work through the book |