Chapter 7. Demo: DVD discs locator

 

This chapter covers

  • jQuery selectors
  • DOM traversal and manipulation
  • Attaching event handlers to DOM elements
  • Event delegation
  • Using custom events

We’re not even at the halfway point of the book and hopefully you’ve learned a lot of new topics, methods, and techniques. Throughout the previous chapters, we’ve covered jQuery selectors, DOM traversal and manipulation, and event handling. For each of these topics we’ve shown you several examples. They were great for letting you focus on a single aspect and helping you fix the concept, but they were limited.

In this chapter, we’ll cover all the previously mentioned topics and also try to fill the gap by providing a demonstration of what you can do with the knowledge you’ve acquired. In the next few sections you’ll develop a basic yet fully functional application to manage a collection of DVDs. Let’s see what you can do!

7.1. Putting events (and more) to work

Let’s pretend that you’re a videophile whose collection of DVDs, numbering in the thousands, has become a huge problem. Not only has organization become an issue, making it hard to find a DVD quickly, but all those DVDs in their cases have become a storage problem. They’ve taken over way too much space and will get you thrown out of the house if the problem isn’t solved.

7.2. Summary