ppk on JavaScript


Book Description

Whether you're an old-school scripter who needs to modernize your JavaScripting skills or a standards-aware Web developer who needs best practices and code examples, you'll welcome this guide from a JavaScript master. Other JavaScript books use example scripts that have little bearing on real-world Web development and are useful only in the chapter at hand. In contrast, Peter-Paul Koch's book uses eight real-world scripts he created for real-world clients in order to earn real-world money. That means the scripts are guaranteed to do something useful (and sellable!) that enhances the usability of the page they're used on. The book's example scripts include one that sorts a data table according to the user's search queries, a form validation script, a script that shows form fields only when the user needs them, a drop-down menu, and a data retrieval script that uses simple Ajax and shows the data in an animation. After an overview of JavaScript's purpose, Peter-Paul provides theoretical chapters on the context (jobs for JavaScript, CSS vs. JavaScript), the browsers (debugging, the arcana of the browser string), and script preparation. Then follow practical chapters on Core, BOM, Events, DOM, CSS Modification, and Data Retrieval, all of which are explained through a combination of theoretical instruction and the taking apart of the relevant sections of the example scripts.




Pro JavaScript Techniques


Book Description

This book addresses today’s approach to JavaScript in detail: modern browser support, including information on Internet Explorer 7; Object-Oriented JavaScript; testing and debugging; unobtrusive JavaScript techniques using DOM Scripting; Ajax; creating and using blocks of reusable code, and the future of JavaScript. All the concepts expressed in this up-to-the-minute reference are thoroughly backed up with real world examples and full-scale case studies. The book offers reusable functions for readers to use in their own projects, a significant time-saver. Also included are several reference sections that allow developers to look up details quickly and easily.




JavaScript Cookbook


Book Description

Why reinvent the wheel every time you run into a problem with JavaScript? This cookbook is chock-full of code recipes that address common programming tasks, as well as techniques for building web apps that work in any browser. Just copy and paste the code samples into your project—you’ll get the job done faster and learn more about JavaScript in the process. You'll also learn how to take advantage of the latest features in ECMAScript 5 and HTML5, including the new cross-domain widget communication technique, HTML5's video and audio elements, and the drawing canvas. You'll find recipes for using these features with JavaScript to build high-quality application interfaces. Create interactive web and desktop applications Work with JavaScript objects, such as String, Array, Number, and Math Use JavaScript with Scalable Vector Graphics (SVG) and the canvas element Store data in various ways, from the simple to the complex Program the new HTML5 audio and video elements Implement concurrent programming with Web Workers Use and create jQuery plug-ins Use ARIA and JavaScript to create fully accessible rich internet applications




JavaScript Web Applications


Book Description

Building rich JavaScript applications that bring a desktop experience to the Web requires moving state from the server to the client side—not a simple task. This hands-on book takes proficient JavaScript developers through all the steps necessary to create state-of-the-art applications, including structure, templating, frameworks, communicating with the server, and many other issues. Throughout the book, you'll work with real-world example applications to help you grasp the concepts involved. Learn how to create JavaScript applications that offer a more responsive and improved experience. Use the Model-View-Controller (MVC) pattern, and learn how to manage dependencies inside your application Get an introduction to templating and data binding Learn about loading remote data, Ajax, and cross-domain requests Create realtime applications with WebSockets and Node.js Accept dropped files and upload data with progress indicators Use major frameworks and libraries, including jQuery, Spine, and Backbone Write tests and use the console to debug your applications Get deployment best practices, such as caching and minification




JavaScript: The Missing Manual


Book Description

JavaScript is an essential language for creating modern, interactive websites, but its complex rules challenge even the most experienced web designers. With JavaScript: The Missing Manual, you'll quickly learn how to use JavaScript in sophisticated ways -- without pain or frustration -- even if you have little or no programming experience. JavaScript expert David McFarland first teaches you the basics by having you build a simple program. Then you'll learn how to work with jQuery, a popular library of pre-built JavaScript components that's free and easy to use. With jQuery, you can quickly build modern, interactive web pages -- without having to script everything from scratch! Learn how to add scripts to a web page, store and manipulate information, communicate with the browser window, respond to events like mouse clicks and form submissions, and identify and modify HTML Get real-world examples of JavaScript in action Learn to build pop-up navigation bars, enhance HTML tables, create an interactive photo gallery, and make web forms more usable Create interesting user interfaces with tabbed panels, accordion panels, and pop-up dialog boxes Learn to avoid the ten most common errors new programmers make, and how to find and fix bugs Use JavaScript with Ajax to communicate with a server so that your web pages can receive information without having to reload




Learn to Code HTML and CSS


Book Description

HTML and CSS can be a little daunting at first but fear not. This book, based on Shay Howe's popular workshop covers the basics and breaks down the barrier to entry, showing readers how they can start using HTML and CSS through practical techniques today. They'll find accompanying code examples online, while they explore topics such as the different structures of HTML and CSS, and common terms. After establishing a basic understanding of HTML and CSS a deeper dive is taken into the box model and how to work with floats. The book includes an exercise focused on cleaning up a web page by improving the user interface and design, solely using HTML and CSS. With a few quick changes the web page changes shape and comes to life. Interactive, technically up-to-the-minute and easy-to-understand, this book will advance a student's skills to a professional level.




Game Mechanics


Book Description

This in-depth resource teaches you to craft mechanics that generate challenging, enjoyable, and well-balanced gameplay. You’ll discover at what stages to prototype, test, and implement mechanics in games and learn how to visualize and simulate game mechanics in order to design better games. Along the way, you’ll practice what you’ve learned with hands-on lessons. A free downloadable simulation tool developed by Joris Dormans is also available in order to follow along with exercises in the book in an easy-to-use graphical environment. In Game Mechanics: Advanced Game Design, you’ll learn how to: * Design and balance game mechanics to create emergent gameplay before you write a single line of code. * Visualize the internal economy so that you can immediately see what goes on in a complex game. * Use novel prototyping techniques that let you simulate games and collect vast quantities of gameplay data on the first day of development. * Apply design patterns for game mechanics—from a library in this book—to improve your game designs. * Explore the delicate balance between game mechanics and level design to create compelling, long-lasting game experiences. * Replace fixed, scripted events in your game with dynamic progression systems to give your players a new experience every time they play. "I've been waiting for a book like this for ten years: packed with game design goodness that tackles the science without undermining the art." --Richard Bartle, University of Essex, co-author of the first MMORPG “Game Mechanics: Advanced Game Design by Joris Dormans & Ernest Adams formalizes game grammar quite well. Not sure I need to write a next book now!” -- Raph Koster, author of A Theory of Fun for Game Design.




Scriptin' with JavaScript and Ajax


Book Description

JavaScript is the brains of your Web page—it enables you to modify a document’s structure, styling, and content in response to user actions without requesting new pages from the server. Scriptin' with JavaScript and Ajax teaches you how to master this powerful and elegant language so you can develop intuitive user interactions that take the user experience to new levels of sophistication and responsiveness. Today’s application-like Web experiences (such as Salesforce.com and Google Maps) and Web 2.0 sites (such as Flickr.com and Twitter) are powered by JavaScript and Ajax. Using the techniques shown in this book, you will be able to start creating similar experiences in the sites you design. Scriptin' with JavaScript and Ajax will teach you how to: Start developing with JavaScript fast! Write lightweight but powerful object-oriented code Modify the Document Object Model “Progressively enhance” your pages with JavaScript to provide the highest levels of accessibility to all users Learn sophisticated techniques for making your pages respond to user actions Use the downloadable Scriptin’ library of helper functions to speed development and ensure cross-browser compatibility Use Ajax scripting techniques to update specific areas of the page with data from the server Create powerful interface interactions, such as sliding panels and tree menus Evaluate frameworks such as jQuery and Prototype to find the best one for your needs Build an online application that looks and responds like a regular desktop application Easily adapt the Scriptin’ code examples for use in your own projects—download them at www.scriptinwithajax.com




Secrets of the JavaScript Ninja


Book Description

Summary Secrets of the Javascript Ninja takes you on a journey towards mastering modern JavaScript development in three phases: design, construction, and maintenance. Written for JavaScript developers with intermediate-level skills, this book will give you the knowledge you need to create a cross-browser JavaScript library from the ground up. About this Book You can't always attack software head-on. Sometimes youcome at it sideways or sneak up from behind. You need tomaster an arsenal of tools and know every stealthy trick.You have to be a ninja. Secrets of the JavaScript Ninja leads you down the pathway toJavaScript enlightenment. This unique book starts with keyconcepts, like the relationships between functions, objects, andclosures, taught from the master's perspective. You'll grow fromapprentice to ninja as you soak up fresh insights on the techniquesyou use every day and discover features and capabilities you neverknew about. When you reach the final chapters, you'll be ready tocode brilliant JavaScript applications and maybe even write yourown libraries and frameworks. You don't have to be a ninja to read this book—just be willing tobecome one. Are you ready? Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book. What's Inside Functions, objects, closures, regular expressions, and more Seeing applications and libraries from the right perspective Dealing with the complexities of cross-browser development Modern JavaScript design About the Authors John Resig is an acknowledged JavaScript authority and the creatorof the jQuery library. Bear Bibeault is a web developer and coauthorof Ajax in Practice, Prototype and Scriptaculous in Action, and jQueryin Action from Manning. Table of Contents PART 1 PREPARING FOR TRAINING Enter the ninja Arming with testing and debugging PART 2 APPRENTICE TRAINING Functions are fundamental Wielding functions Closing in on closures Object-orientation with prototypes Wrangling regular expressions Taming threads and timers PART 3 NINJA TRAINING Ninja alchemy: runtime code evaluation With statements Developing cross-browser strategies Cutting through attributes, properties, and CSS PART 4 MASTER TRAINING Surviving events Manipulating the DOM CSS selector engines




Implementing Responsive Design


Book Description

New devices and platforms emerge daily. Browsers iterate at a remarkable pace. Faced with this volatile landscape we can either struggle for control or we can embrace the inherent flexibility of the web. Responsive design is not just another technique–it is the beginning of the maturation of a medium and a fundamental shift in the way we think about the web. Implementing Responsive Design is a practical examination of how this fundamental shift affects the way we design and build our sites. Readers will learn how to: Build responsive sites using a combination of fluid layouts, media queries, and fluid media Adopt a responsive workflow from the very start of a project Enhance content for different devices Use feature-detection and server-side enhancement to provide a richer experience