Copy Events from One Element to Another
Need to clone an element and its events? Sure, you could rebind the events after doing the clone, but that wouldn’t be very DRY now, would it? Introducing Copy Events, a new plugin for jQuery.
Need to clone an element and its events? Sure, you could rebind the events after doing the clone, but that wouldn’t be very DRY now, would it? Introducing Copy Events, a new plugin for jQuery.
Here is a quick trick for getting an effect to delay without using setTimeout.
Let’s say, for example, that I want to show an alert message on the page every time a user clicks on a certain button. But I don’t want it to stay there forever; I want it to go away a few seconds later. You know, like the way they do in all of those crazy Web 2.0 sites.
It’s jQuery’s first birthday, and John Resig and the development team are celebrating in style with a brand new release of jQuery!
Version 1.1 has just about every performance and feature improvement that I mentioned in my previous Year of jQuery entry — the huge speed improvements, the streamlined API, and even the much-improved documentation and website (kudos to the web and design teams!). Don’t wait another second. Abandon this blog right now and go directly to jquery.com for all of the new goodies!
Are you still here? Oh well. Then bear with me another minute while I write a bit more about the streamlined API. The new jQuery has much more speed and functionality for just a couple more kb of code. One way that was achieved was by stripping out some of the excess helper methods that appeared to be little used or redundant. If you are running jQuery on a production site, please be careful about upgrading. A good way to start is to drop in the jQuery 1.0 to 1.1 compatibility plugin (JS file), and then read through the list of API changes that John Resig outlined in a recent blog entry.
Here on Learning jQuery, we (okay, I) will be going through the old entries in the next few days, providing updated code and instructions for 1.1 in places where there might be a compatibility issue. So, keep an eye out for the jQ1.1 icon: 
Now, really, you must stop reading this post and go get yourself some of that jQuery 1.1!
I hereby decree that 2007 shall be the Year of jQuery. Well, what else would you expect from a blog about jQuery? But, really, this is not just another case of wishful thinking, or even one of those lame prediction posts that have been spinning around the web lately. Admittedly, the title might suffer from a touch of hyperbole. But just a touch.
Here are a few of the reasons why I think jQuery is going to explode in 2007:
The coolest thing about this news is that we’ll be seeing most, if not all, of the improvements I’ve mentioned within the next couple months — some perhaps within weeks. jQuery has its first birthday coming on the 14th of this month, and it’s sure to bring some nice birthday presents for all. So, stay tuned!
© Copyright 2006–2010 Learning jQuery and participating authors. Written content on this site is under a Creative Commons License.
Development by Karl Swedberg. Design by Rex Rainey. Published with WordPress.