cachedAjax (jQuery plugin)

v0.0.1
 01/27/2011  

About

A jQuery plugin to set up memoized Ajax calls to improve performance when fetching static resources via Ajax.  

Call the function via `jQuery.cachedAjax` and supply it with a configuration object that you would normally use with `jQuery.ajax` (save for the data).  It then returns a function that you call with a data object every time you wish to make a request.  

 

Read the rest of this post »

inputHintOverlay (jQuery plugin)

Last update: 9/21/2010

About

A jQuery plugin that overlays input labels as hints to a form. It uses the title tags on each input/textarea as the label values/hints. It is called it on the form (or any parent).

$(form).inputHintOverlay()

Why use title tags? This makes it play nice with pre-filling forms from cookies (if a value is specified, the hint goes away).

Why use overlay instead of setting the value? This allows validation to work correctly and prevents the user from accidently submiting erroneous data.

Arguments to this method are adjustments to top and left of the fixed position of each overlay div. The folling would push each hint down 2px and right 5px.

$(form).inputHintOverlay(2, 5)

The class .inputHintOverlay can be used to style the hints.

 

Read the rest of this post »