A couple of weeks ago I checked out jQuery. I used it in a couple of applications and removed the old Prototype stuff. I immediately saw that it was smarter than any other library I tried before, but there was a couple of things I didn’t like/find out about.
Until now. One things that always annoyed me was that I had to rebind events to objects whenever I inserted something into the DOM and at the same time being “unobtrusive”. Sometimes it was just a line of code, but it was stupid since I obviously wanted the same event as in ready() on the same objects. Today I was banging my head againts the wall when I saw the “live” function in the API. It does just what I want, binding an event to an object forever, or automatically adds the event to an object of the same class.
I now truly love jQuery.
« Back to posts Write a new comment