Wednesday, July 12, 2006

jQuery

I used to work with John Resig and Julia West before they moved on to become big wigs on their own.  They are on their way too, making waves in the JavaScript community with a new way to work with Javascript.  They are in the mist of developing a javascript API called jQuery that makes a developers life easier once you understand how it works. 

What is jQuery?

jQuery is a Javascript library that takes this motto to heart: Writing Javascript code should be fun. jQuery acheives this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.

I finally used jQuery last night because I needed to make rounded corners on a div. all I needed to do was include the jquery.js file, include the rounded corners jQuery plugin js file then I included these three lines of code:

$(document).ready(function(){
     $("#learn-more-container").corner("round bottom 15px");
});

which finds the div with id learn-more-container and sets the bottom corners to round with a radius of 15px.

Just that easy.  Definitely check out jQuery and see how easy it is for yourself.

Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u)  

Enter the code shown (prevents robots):

Blog Posts by:

Currently Viewable:

My Twitter Updates

View Twitter Page