rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9781449334994

Html5 Hacks

by ;
  • ISBN13:

    9781449334994

  • ISBN10:

    1449334997

  • Format: Paperback
  • Copyright: 2012-12-05
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $34.99 Save up to $0.03
  • Buy New
    $34.96

    USUALLY SHIPS IN 2-3 BUSINESS DAYS

Summary

HTML5 is already transforming web development, though it's still under construction in some areas. HTML5 Hacks shows you how to use the latest tools to make your sites and applications more interactive, more functional, and more capable of competing with desktop applications. Each hack shows you how to make a concrete improvement, applying the latest in JavaScript, HTML, and CSS power to common web development issues. Learn the latest techniques with HTML, CSS, and JavaScript Discover new markup and multimedia features Take off with new graphics features in Canvas and SVG Use new presentation models and tools in CSS3 Apply CSS transformation and animation to reduce the amount of JavaScript you need for exciting sites Implement local storage with hash tables and databases Improve client-server communication with web sockets and XmlHttpRequest

Author Biography

Jesse Cravens is a Senior Engineer at frog where he works with the world's leading companies, helping them to design, engineer, and bring to market meaningful products and services. With 12 years of experience in web application development, Jesse is currently focusing on single page web applications, the mobile web, and HTML5. Jeff Burtoft, HTML5 Evangelist for Microsoft Corporation, has built a reputation of pushing the boundaries of HTML5 and JavaScript. With over 10 years of experience in web development, he's filled roles in the industry ranging from webmaster of a startup to lead frontend developer for a Fortune 500 company.

Table of Contents

Prefacep. vii
Hacking the Semantic Wayp. 1
Simplify Your Doc with the Right p. 1
Adopt Common Structuresp. 2
Make Your New HTML5 Tags Render Properly in Older Browsersp. 5
Bring Back the Tagp. 11
Easily Implement Form Validation Without JavaScriptp. 16
Improve the Usability of Your Forms with New Controlsp. 24
Know What's Going On in Your App with New DOM Eventsp. 37
Add Rich Context to Your Markup with Custom Datap. 40
Track User Events with Custom Datap. 44
Make Your Page Consumable by Robots and Humans Alike with Microdatap. 47
Hacking with Stylep. 53
Use Experimental CSS Features with Browser Prefixesp. 54
Design with Custom Fonts Using Web Fontsp. 56
Use Google Web Fonts for Simple @font-face Implementationp. 61
Use CSS3 Text Effects to Make Your Text Not Suckp. 70
Make Elements Appear Transparent Without Altering the Opacityp. 73
Use Media Queries to Build Responsive Designp. 76
Make Your Web App Respond to Device Orientation Changesp. 81
Take Full Control of Your DOM with Pseudoclassesp. 85
Hack Up Your Sprite and Put Your Images Inline with Image Data URIsp. 87
Build Gradients the Easy Wayp. 92
Make Borders Interesting Again, with Border Treatmentsp. 98
Set Multiple Background Images to the Same Elementp. 103
Free Your Page Elements from Their Traditional Space with CSS3 Transformsp. 106
Turn Transforms into Animations with CSS3 Transitionsp. 110
Make iOS-Style Card Flips with CSS Transforms and Transitionsp. 113
Use Respond.js to Polyfill CSS3 Media Queries in IEp. 117
Control Mobile Layout with the viewport Tagp. 121
Multimedia Hackingp. 125
Embed Video Directly in Your Application with HTML5 Videop. 125
Choose the Right Codecs for Your Video Filesp. 128
Create Custom Video Controls with Video APIsp. 130
Replace the Background of Your HTML5 Video with the Tagp. 135
Add Subtitles to Your HTML5 Video Elementp. 139
Beautify Your HTML5 Video Cuesp. 142
Use the Cuepoint.js Polyfill for Subtitlesp. 146
Easily Build Audio-Rich Applications with Buzzp. 149
Simplify Your HTML5 Media with MediaElement.jsp. 153
Hacking Your Graphics with Canvas and SVGp. 157
Draw Shapes on Your HTML5 Tagp. 158
Apply Styles to Your Canvas Elementsp. 164
Style Canvas Elements with Image Filesp. 171
Use the HTML5 Tag to Create High-Res, Retina-Display-Ready Mediap. 177
Accelerate Animation with Canvas Drawingsp. 180
Build "Native" Illustrations with Scalable Vector Graphicsp. 187
Style SVG Elements with CSSp. 191
Animate Illustrations with SVGp. 198
Embed SVG Directly in Your HTMLp. 202
User Interactionsp. 207
Make Any Content Draggable Within Your Applicationp. 208
Update the DOM with a Drag-and-Drop Data Transfer Objectp. 212
Drag Files In and Out of Your Web Applicationp. 218
Make Any Element on Your Page User-Customizable with Editable Contentp. 224
Turn Your Web Page into a WYSIWYG Editorp. 227
Take Control of the Browser History Buttons with HTML5 Session Historyp. 230
Client-Side Data Storage Hacksp. 237
Embed Binary Data in an Inline URLp. 237
Convert a Data URI to a Blob and Append It to Form Data with XHR2p. 242
Use the WebStorage API to Persist User Datap. 244
Polyfill LocalStorage with YepNope.js and Storage.jsp. 250
Cache Media Resources Locally with the FileSystem APIp. 253
Build a Milestone Calendar with IndexedDB and FullCalendar.jsp. 262
Geolocation Hacksp. 271
Use the Geolocation APIs to Display Longitude and Latitude in a Mobile Web Applicationp. 272
Use Google's Geocoding API to Reverse-Geocode a User's Locationp. 278
Update a User's Current Location in a Google Mapp. 284
Use the Geoloqi Service to Build a Geofencep. 289
Use the Geoloqi Real-Time Streaming Service to Broadcast a Remote User's Movementp. 296
Polyfill Geolocation APIs with Webshimsp. 300
WebWorker APIp. 305
How Browsers Handle JavaScriptp. 305
Use the BlobBuilder Interface to Create an Inline Workerp. 307
Perform Heavy Array Computations in a Dedicated Web Workerp. 313
Use a Timer to Send Application State to Workersp. 323
Process Image Data with Pixel Manipulation in a Dedicated Workerp. 336
Use Import Scripts to Make Twitter JSONP Requestsp. 341
Connect to Shared Workers Simulataneously from Multiple Browser Windowsp. 345
Hacking HTML5 Connectivityp. 349
Use Kaazing's Remote WebSocket Server to Echo Simple Messages from a Browserp. 350
Build a Blazing-Fast WebSocket Server with Node.js and the ws Modulep. 358
Build a Donation Thermometer with Web Sockets, the Pusher API, and PHPp. 365
Build Plug-Ins for jWebSocketp. 381
Push Notifications to the Browser with Server-Sent Eventsp. 392
Configure Amazon S3 for Cross-Origin Resource Sharing to Host a Web Fontp. 402
Control an HTML5 Slide Deck with Robodeckp. 411
Inspect a Socket.IO Connection to Determine If It Is Native or Emulatedp. 432
Build a Simple SPDY Server with node-spdyp. 432
Pro HTML5 Application Hacks with Node.jsp. 435
HTML5 Application Design Considerationsp. 435
Deliver "Hello Html5" to the Browserp. 436
Detect the User Agent String Within the Request Objectp. 444
Use Node.js's Response Object to Respond to the Client with Device-Specific Datap. 445
Use the Node Package Manager to Add a Web Application Framework As a Third-Party Modulep. 447
Use the Express Application Generator to Bootstrap Your Appp. 448
Build a Custom Module to Handle Routingp. 451
Configure Express to Use a View Enginep. 452
Use Jade Layouts to DRY Up Your Application's Viewsp. 454
Use a Jade Partial to Create a Common Navigation Bar in Your Viewsp. 456
Use Jade Mixins to Populate Your Views with Datap. 458
Set Up Expressive, Dynamic, Robust CSS with Stylusp. 462
Include HTML5 Boilerplate As Your Default Starter Templatep. 465
Become an HTML5 Hackerp. 471
Indexp. 473
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program