New Features New Chapter 1. The new Chapter 1 engages students with intriguing facts and figures to get them excited about studying Internet and web applications development. The chapter includes a table of some of the research made possible by computers and the Internet, current technology trends and hardware discussion, the data hierarchy, a new section on social networking, a table of popular web services, a table of business and technology publications and websites that will help you stay up to date with the latest technology news and trends, and updated exercises.New HTML5 features. Chapter 3 introduces the latest features of HTML5 including the new HTML5 form input types and page structure elements. The new HTML5 features are not universally implemented in all of the web browsers. This is changing as the browser vendors release new versions. Many additional HTML5 features are discussed throughout the book.New CSS3 features. Chapter 5 introduces the latest features of CSS3. The new CSS3 features are not universally implemented in all of the web browsers. This is changing as the browser vendors release new versions.Updated treatment of JavaScript. The authors have strengthened the JavaScript coverage in Chapters 6—16. JavaScript has become the de facto standard client-side scripting language for web-based applications due to its highly portable nature. The treatment, which is appropriate for novices, serves two purposes–it introduces clientside scripting (Chapters 6—16), which makes web pages more dynamic and interactive, and it provides the programming foundation for the server-side scripting in PHP presented in Chapter 19. JavaScript looks similar to basic core language features in C, C++, C# and Java. Once you learn JavaScript, you’ve got a foothold on learning these other popular programming languages.New HTML5 canvas. Chapter 14 replaces the Flash and Silverlight chapters from the previous edition with the new HTML5 canvas element for 2D graphics (Fig. 3). canvas is built into the browser, eliminating the need for plug-ins like Flash and Silverlight, and helping you improve performance and convenience, and reduce costs. At the end of the chapter, you’ll use canvas to build a fun, animated Cannon Game with audio effects, which the authors built in Flash in previous editions of this book.New and updated multimedia exercises. Chapter 14 includes several new and updated multimedia exercises.Tested on seven browsers. For the last edition of this book, the authors tested all the code on two desktop browsers–Internet Explorer and Firefox. For this new edition, they tested all of the code in the most current versions of seven popular browsers–five for the desktop (Chrome, Internet Explorer, Firefox, Opera and Safari) and two for mobile devices (iPhone/iPad and Android). HTML5 and CSS3 are evolving and the final standards have not been approved yet. The browser vendors are selectively implementing features that are likely to be standardized. Some vendors have higher levels of feature compliance than others. With each new version of the browsers, the trend has been to significantly increase the amount of functionality that’s been implemented. The HTML5 test site (html5test.com) measures how well each browser supports the pending standards and specifications. You can view test scores and see which features are supported by each browser. You can also check sites such as http://caniuse.com/ for a list of features covered by each browser. Not every document in this book will render properly in each browser. Instead of choosing only capabilities that exist universally, the authors demonstrate exciting new features in whatever browser handles the new functionality best. As you read this book, run each example in multiple web browsers so you can view and interact with it as it was originally intended. And remember, things are changing quickly, so a browser that did not support a feature when the book was written could support it when you read the book.Validated HTML5, CSS3 and JavaScript code. All of the HTML5, CSS3 and JavaScript code in the book was validated using validator.w3.org/ for HTML5, jigsaw.w3.org/css-validator for CSS3 and javascriptlint.com for JavaScript. Not every script fully validates but most do. Although all of the code works properly, you may receive warnings (or possibly errors) when validating code with some of the new features.Smartphone and tablet apps. You’re probably familiar with the explosion of apps available for the iPhone/iPad and Android platforms. There are almost a million apps between the two. Previously, writing apps for these platforms required detailed knowledge of each, and in the case of iPhone/iPad, was strictly controlled by Apple; Android is more open. With the techniques you’ll learn in this book, you’ll be able to write apps that are portable between a great variety of desktop and mobile platforms, including iPhone/iPad and Android. You’ll even be able to sell those apps on your own terms (or through certain app stores as well). This is an exciting possibility! It’s one of the true virtues of developing with HTML5, CSS3 and JavaScript in general, and HTML5 canvas in particular. Running an HTML5 app on your smartphone or tablet is as simple as opening it in your compliant web browser. You may still encounter some portability issues.New HTML5 web storage capabilities. In Chapter 11, the authors use HTML5’s new web storage capabilities to create a web application that stores a user’s favorite Twitter searches on the computer for easy access at a later time. Web storage replaces the controversial cookie technology, offering lots more storage space. Chapter 11 also briefly introduces JSON, a means for creating JavaScript objects–typically for transferring data over the Internet between client-side and server-side programs.Enhanced Craps game featuring HTML5 audio and video elements. The Craps game in Chapter 9 now includes an HTML5 audio element that plays a dice-rolling sound each time the user rolls the dice. There is also a link to a page with an embedded HTML5 video element that plays a video explaining the rules of the game.jQuery Ajax case study. The previous edition of this book included a calendar application that used the Dojo libraries–which were popular at the time–to create the user interface, communicate with the server asynchronously, handle events and manipulate the DOM. Since then, jQuery has become the most popular JavaScript library. For this edition, the authors have updated the calendar application (Chapter 16) using jQuery and placed it online as a jQuery Ajax case study.New HTML5 WebSockets and Web Workers capabilities. The authors have added an online treatment of two new technologies–WebSockets, which provides a simple model for networking, and Web Workers which provides multithreading on a web page.Ajax-enabled web applications. The chapter on building Ajax-enabled web applications is updated, with applications that demonstrate partial-page updates and type-ahead capabilities–each of these are key capabilities of Rich Internet Applications.HTML DOM and XML DOM. The authors have enhanced the treatments of HTML DOM manipulation, JavaScript events and XML DOM manipulation with JavaScript.LINQ. Since the last edition of the book, Microsoft introduced LINQ (Language-Integrated Query) to replace SQL for database access. Chapter 18 provides an introduction to LINQ basics and an introduction to LINQ to SQL (the technology that replaces SQL).Updated PHP coverage. Chapter 19 has been updated to the latest version of PHP. If you start this book as a novice and study the JavaScript in Chapters 6—13, you’ll have the programming experience needed to understand server-side programming in PHP. [The treatment of server-side programming in ASP.NET requires knowledge of C# or Visual Basic, and in JSF requires knowledge of Java.]ASP.NET, ASP.NET Ajax and web services. This updated three-chapter sequence is now provided for each of Microsoft’s two key applications development languages–C# and Visual Basic. The C# chapters and the first VB chapter are in the print book and the remaining Visual Basic chapters are available online at the book’s Companion Website.JavaServer Faces (JSF), JSF Ajax and web services. This updated three chapter sequence, available online, emphasizes building Ajax-enabled JSF applications.Web services. The authors now provide chapters on building both SOAP-based web services and REST-based web services with ASP.NET in Visual Basic, ASP.NET in C# and JSF in Java.Client/Server applications. Several client-side case studies now enable students to interact with preimplemented web services that the authors host at test.deitel.com.New and updated case studies. The book includes rich case studies using various technologies–Deitel Cover Viewer (JavaScript/DOM), Address Book (Ajax), Cannon Game (HTML5 Canvas), Mailing List (PHP/MySQL), Guest Book and Password-Protected Books Database (ASP.NET), Address Book (JavaServer Faces) and Blackjack (JAX-WS web services). New Pedagogic Features Making a Difference exercises in Chapter 1. The authors encourage you to use computers and the Internet to research and solve significant social problems. These exercises are meant to increase awareness and discussion of important issues the world is facing. We hope you’ll approach them with your own values, politics and beliefs. Check out the many Making a Difference resources the authors provide, including their new Making a Difference Resource Center at www.deitel.com/MakingADifference for additional ideas you may want to investigate further.Page numbers for key terms in chapter summaries. For key terms that appear in the Chapters 1—19 summaries, the page number of the key term’s defining occurrence in the text is included.
Les mer