Book Image

jQuery HOTSHOT

By : Dan Wellman
Book Image

jQuery HOTSHOT

By: Dan Wellman

Overview of this book

jQuery is used by millions of people to write JavaScript more easily and more quickly. It has become the standard tool for web developers and designers to add dynamic, interactive elements to their sites, smoothing out browser inconsistencies and reducing costly development time.jQuery Hotshot walks you step by step through 10 projects designed to familiarise you with the jQuery library and related technologies. Each project focuses on a particular subject or section of the API, but also looks at something related, like jQuery's official templates, or an HTML5 feature like localStorage. Build your knowledge of jQuery and related technologies.Learn a large swathe of the API, up to and including jQuery 1.9, by completing the ten individual projects covered in the book. Some of the projects that we'll work through over the course of this book include a drag-and-drop puzzle game, a browser extension, a multi-file drag-and-drop uploader, an infinite scroller, a sortable table, and a heat map. Learn which jQuery methods and techniques to use in which situations with jQuery Hotshots.
Table of Contents (18 chapters)
jQuery HOTSHOT
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Mission Briefing


In this project we'll build an infinite scrolling system using jQuery that mimics the effect seen on sites such as those mentioned earlier. We'll make a request for some data and display it on the page. Once the user has scrolled to the bottom of the page, we'll make another request for the next page of data, and so on and so forth as the user continues scrolling.

Once we've built our infinite scrolling system, we should end up with something similar to the following screenshot:

Why Is It Awesome?

If you have a lot of data to display and it can easily be arranged in reverse-chronological order, using the infinite scrolling technique is an easy way to maximize the user experience of the page with progressive disclosure – showing incrementally more to the user.

A small subset of the data, which will make the page load quicker, as well as prevent your visitor being overwhelmed with data, can be displayed at first, which gradually increases following user interaction.

The data that...