Mindblown: a blog about philosophy.

  • How jQuery fits into large projects

    This lessons covers If you’ve read all the previous lesson, you’ve hopefully learned how to write beautiful and concise code using jQuery, how to extend its features, and how to unit-test your code. Now that you know jQuery, you’re ready to learn when it isn’t enough and the use of another library or even a…

  • Conclusion

    Using the jQuery knowledge that you’ve gained so far, in this lesson you developed a fully working web application to manage a DVD collection. One of the lessons that you may have learned from working on it is that tasks that at first glance may seem complex are nothing but a combined set of simple…

  • Adding the controls templates

    Whenever a selection is made from a filter drop-down, you need to populate the filter with the controls that are appropriate for that filter. You’ve made it easy for yourself by creating markup templates to copy when you determine which one is appropriate. But there are also a few other housekeeping tasks that you need…

  • Setting up the mainline markup

    If you refer back to figure 7.1a, you can see that the initial display of your DVD search page is pretty simple: a header, a first filter instance, a few buttons, and a preset table where you’ll display the results. Take a look at the HTML markup that achieves that: There’s nothing too surprising in that…

  • 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…

  • Demo: DVD discs locator

    This lesson covers 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 lessons, 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…

  • Conclusion

    This lesson introduced you to the animated effects that jQuery makes available out of the box as well as to the animate() method that allows you to create your own custom animations. The show() and hide() methods, when used without parameters, reveal and conceal elements from the display immediately, without any animation. You can perform animated versions of the hiding and…

  • Delaying queued functions

    Another queue-oriented activity you might want to perform is to add a delay between the executions of queued functions. The delay() method enables that. Method syntax: delay delay(duration[, queueName]) Adds a delay to all unexecuted functions in the named queue. Parameters duration (Number|String) The delay duration in milliseconds, or one of the strings “fast”, “normal”, or “slow”,…

  • Executing the queued functions

    Queuing up functions for execution is not all that useful unless you can somehow cause the execution of the functions to actually occur. Enter the dequeue() method. Method syntax: dequeue dequeue([name]) Removes the foremost function in the named queue for each element in the jQuery object and executes it for each element. Parameters name (String) The name…

  • Queuing functions for execution

    Queuing up animations for serial execution is an obvious use for function queues. But is there a real benefit? After all, the animation methods allow for completion callbacks, so why not just fire off the next animation in the callback of the previous animation? Adding functions to a queue Let’s review the code fragment of listing…

Got any book recommendations?