trim()
Does the same thing as trim() from CF, ASP, PHP, etc.
function trim(text)
{
  var retval;
  retval = text.replace(/^\s+/g, ').replace(/\s+$/g, ');
  return retval;
}
 

cover
Buy Fusebox 5 & FLiP: Master-Class ColdFusion Applications
cover
Buy Fusebox 4 & FLiP: Master-Class ColdFusion Applications
cover
Buy ColdFusion Lists, Arrays, & Structures
cover
Buy ColdFusion XML Objects

Dedicated and Shared CF Hosting