View Single Post
  #5 (permalink)  
Old June 26th, 2008, 05:29 PM
Old Pedant Old Pedant is offline
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

An easy fix for the punctuation problem.

Just change the line
    var words = fld.value.split(/\s/);
into
    var words = fld.value.split(/[^a-zA-Z]/);

That works by simply getting rid of all punctuation. Heh. Not a great solution, but we have to start someplace. <grin/>
Reply With Quote