Registration for jQuery Conference 2008 is closed.

Karl's Archive

Animated Scrolling with jQuery 1.2

Sunday, September 16th, 2007

A few weeks ago I wrote about how to use jQuery and a couple modules from the Interface plugin suite to automatically have same-page links scroll to their target location when clicked (Animated Scrolling for Same-Page Links). Well, now that jQuery 1.2 is out, and I’ve successfully upgraded this site to it without a hitch, we can do the same thing with jQuery core alone.

Here is what the code looks like with the minor change:
(more…)

Upgrading to jQuery 1.2

Thursday, September 13th, 2007

As I’m sure most of you have already heard, the jQuery Project Team has just released a major new version (1.2) of our beloved JavaScript Library. Hat’s off to John Resig and the gang for another spectacular release!

I’m going to upgrade this site to the new version this weekend. On a typical site, I’d feel pretty confident about moving forward without any hiccups—especially after hearing all the success stories on the jQuery discussion list. But since the nature of this site is to demonstrate techniques used with jQuery, its use of the library is probably more comprehensive (for lack of a better word) than most. Therefore, I want to be extra careful. My simple plan for the transition to 1.2 is described below, along with some discussion of the API changes, in the off chance that it helps others who wish to upgrade with caution.
(more…)

Animated Scrolling for Same-Page Links

Sunday, August 26th, 2007

Many months ago, I posted a note to the jQuery discussion list showing a script I wrote that uses the Interface plugin’s ScrollTo() method to automatically scroll smoothly to any id or named anchor on the current page when clicking on a same-page link. The code was unwieldy and unneccessarily long, but it worked.
(more…)

Book Excerpt - Table Manipulation

Friday, August 17th, 2007

Packt Publishing has just posted an excerpt of our new book Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques on their site. The excerpt covers table sorting, pagination, row highlighting/striping, and basic tooltips. It also gives a hat tip to Roger Johansson of 456 Berea Street and Christian Bach of jQuery Table Sorter fame (by the way, Christian has just released version 2.0 of the plugin, and it’s awesome!). Here is the summary:
(more…)

clueTip Plugin Beta 2

Friday, July 20th, 2007

Beta 2 of the clueTip Plugin for jQuery is out the door and on the server. I’ve made a number of fairly significant changes (for the better, I hope), both to the script and to the CSS. One notable addition is the ability to apply a “jTip” style to the clueTips by changing the CSS, setting the new “arrows” option to true and the new “dropShadow” option to false. Here is the full list of what has been changed:
(more…)

clueTip Plugin Beta

Thursday, July 12th, 2007

If you’re a member of the jQuery discussion list, then you probably already know that I’ve been working on an ajax tooltip plugin, inspired by Cody Lindley’s jTip plugin. Well, I’m finally ready to officially introduce it (even though Smashing Magazine somehow found out about it and included it in their list of 40+ Tooltips Scripts).

The new clueTip plugin allows you to easily set a link, or any other element, to show a tooltip when the user’s mouse hovers over it. If the link includes a title attribute, its text becomes the heading of the clueTip.
(more…)