TPR6: Adding Interactive Content to Your Website Using jQuery

Monday, October 15th, 2007

Jaclyn Whitehorn and Gina Tinny, The University of Alabama
Actually, only Jaclyn today.

What is it? A JavaScript library. Really good at quickly accessing and modifying any part of your page. Todays buzzword is unobtrusive!

She just threw down the fact that most of those cool Web2.0 effects are not really AJAX. It only becomes the big “A” when your page asynchronously talks to the server. I like her.

jQuery format:
(“Ready” is faster then page.onLoad(). This might solve our page flicker!)

$(document).ready( function() {
// Your code
});

For instance:
Selection: Take 3rd and 4th list item on the page:

$("ul > li").slice(2,4);

She then show some examples working with plug-ins. They are really slick. Would be a perfect addition to our hide/show FAQ. The only problem is that we currently use mootools. The next examples cover adding “.pdf” (which we already do), table striping (which we sometimes do). Very powerful.

Leave a Reply

You know you want to...