Announcement

oldest first | newest first

Tutorials Elsewhere

Quite a few jQuery tutorials have been posted around the web recently. It’s always great to see more people not only learning jQuery, but also teaching it to others. Here are just a few that I think could be helpful to readers of Learning jQuery:
Read the rest of this entry »

Thanks for jQuery

Last week I attended The Ajax Experience conference in Boston (no, I didn’t go to a Red Sox game), sponsored by the folks at ajaxian.com The schedule was packed with outstanding presentations. But the highlight of my trip was jQueryCamp07, which was held at Harvard University on Saturday.

Throughout the week I had quite a few opportunities to talk with John Resig, the creator and lead developer of jQuery. But, like the social clod that I am, I forgot to do the one thing that I had set out to do: Thank John Resig, in person, for the jQuery JavaScript Library. It was only after I returned home on Sunday that I realized my oversight. So, at the risk of sounding sappy, I figure I ought to write in a public forum what I had meant to say face to face.
Read the rest of this entry »

Improved Animated Scrolling Script for Same-Page Links

After posting the last entry on animated scrolling with jQuery 1.2, I realized that I had left out an important piece of code. Actually, I didn't discover it until someone notified me that another page on the site was broken. Can you spot the problem(s)? [Note: the problem is not in line 3. The syntax highlighter just can't handle the regular expression with two slashes in it ("//") and is incorrectly treating them as a comment mark.] See the answer below the code.

JavaScript:
  1. $(document).ready(function(){
  2.   $('a[href*=#]').click(function() {
  3.     if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
  4.     && location.hostname == this.hostname) {
  5.       var $target = $(this.hash);
  6.       $target = $target.length && $target
  7.       || $('[name=' + this.hash.slice(1) +']');
  8.       if ($target.length) {
  9.         var targetOffset = $target.offset().top;
  10.         $('html,body')
  11.         .animate({scrollTop: targetOffset}, 1000);
  12.        return false;
  13.       }
  14.     }
  15.   });
  16. });

Read the rest of this entry »

Book Excerpt – Table Manipulation

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: Read the rest of this entry »

jquery.com back up

The jquery.com site is up and running again. The DNS is still propagating across the net, so it might not be available quite yet from every location, but it should be fully reachable within the next day. I'll leave source files on my server for the next couple days, so feel free to grab them from here (see previous post for details) if you're still not able to get to jquery.com. Thanks, everyone, for your patience. Also, if you'd like to donate a few bucks to help John with the setup costs for the new web host, you can do that here or on the jquery.com home page:

jquery.com temporarily down

As most of you have probably noticed, the jquery.com web site is down. John Resig has posted an explanation of what is going on, but you might not be able to see it depending on your DNS settings. Here is a copy of his words, taken from his post to the discussion list:
Sat. May 5th 6pm: We suffered our second DDOS attack today and our host has asked us to no longer host the jQuery site with them. Effective immediately they have shut down all services on the jQuery server and asked us to leave. This has taken us completely by surprise and we're working to adapt. Sat. May 5th 11pm: Most of Saturday has been spent scrambling to offload copies of files onto other servers and to find a new host. All files have been backed up, so that is promising in-and-of itself.... Sun. May 6th 1am: An order has been placed with Rimuhosting to acquire a dedicated server for jQuery. We're hoping that the server will be ready some time Sunday, or at the latest, Monday. All files will be immediately moved over and attempts will be made to get everything in order. Sun. May 6th 2pm: No update from Rimu as of yet, here's hoping they come through in a reasonable amount of time.
Also, I've placed yesterday's SVN builds of jquery.js and all of the plugins at http://www.learningjquery.com/src/. Keep in mind that these are not release versions, but development versions, so please do not use them for "production" code. If someone has the latest stable release and is willing to provide a link to it, please post it in a comment. Or, send me the file (my first name at learningjquery.com) and I'll post it here.

Latest Stable Releases:

jquery-latest.js jquery-latest-pack.js
If you need to view the API reference, don't forget these two excellent resources available to you: Visual jQuery and jQuery API. UPDATE FROM JOHN RESIG:
Sun. May 6th 6pm: Just got word from Rimu that the server is being set up, and will be ready "within 12 hours". Thanks everyone for the donations that are pouring in, I appreciate it! NOTE Temporary downloads are back up! Thanks for hanging in there through this ordeal!