Where to find Jquery resources

JQuery official website

JQuery official website

jQuery’s website, where you can download the jquery functions and find loads of useful plugins.

Learning JqueryAn excellent blog to help get you from jQuery beginner to intermediate and on to advanced.You can also filter posts by skill level.

jQuery cheat sheet

jQuery cheat sheet

One page cheat sheet printout with quick references to all of the jQuery library.

jQuery Style

jQuery Style

Lacking Inspiration? Check out this collection of jQuery powered sites, tutorials, plugins and screencasts.

Drupal questionnaires

Build Questionnaires and surveys with drupal module Webform.

One project I recently worked involved building questionnaries that the clients employees could complete as part of an interview process. Once an interview is completed a radar graph would be shown to show an instant response or feedback about the interview.

I used Drupals webform module for this. This module is very good for building these type of questionnaires and collecting data. But as this module does not actually create a node for every completed questionnaire I could not integrate this into a view to then display a graph easily.

At the end I wrote a separate php script to get the data from webforms tables to this.

Today I have come across the ‘Question field’ module which is in alpha release state. It uses CCK to build the content types and so when a questionnaire is completed a drupal node is generated. Not tried it yet, but will do soon. Anyone tried this module?

How HTML 5 link prefetching can make your site load faster with one line of code.

One of the lesser-known jewels of HTML 5 is link prefetching. The idea is to extend the time-honored concept of image preloading to HTML content (and without any messy AJAX code).

Here’s how it works: You add a line like this to your page:

1
<link rel="next" href="page2.html">

Then the browser automatically downloads page2.html in a background process as soon as the user’s computer is idle. When the user finally clicks a link to page2.html, the browser serves it from the cache, and so it loads significantly faster.

Link prefetching is currently only supported by Firefox. But since Firefox is the second most popular web browser in the world, you can noticeably decrease load times for a significant chunk of your users just by adding one line of code to your HTML. Pretty cool, huh?

Here are some ways you could use link prefetching:

* Anytime you split content across multiple pages, as in large articles, online tutorials, image slideshows, etc.

* On your homepage to preload whatever page your users tend to click on next. (That could be the “features” page on a product site or your most recent entry on a blog.)

* On a search engine to prefetch the top result.

You can also use it for static content using the prefetch rel:

1
<link  rel="prefetch" href="/images/big.jpeg">

A couple other interesting points:

* Link prefetching will probably pop up in Opera, Chrome and Safari soon, and in Internet Explorer sometime around 2020.

* If this becomes popular it has the potential to skew logs and stats. Consider what happens when a bunch of prefetch requests are made to one of your pages, but the user never actually visits the page. The server (or stats package) doesn’t know the difference.

To clear this up, Firefox sends along an HTTP header,

1
X-moz:  prefetch

, but you need some logic on the server side to detect it.

To learn more about link prefetching and see other examples, see the article about it on Mozilla’s site: https://developer.mozilla.org/en/link_prefetching_faq