Fotiman

msg:4513485 | 7:11 pm on Oct 29, 2012 (gmt 0) |
A quick Google found this in the Adobe forums [forums.adobe.com]: var custom = new Spry.Widget.ValidationTextField("id", "custom", { validation: function( value, options ){ return /[a-z]/gi.test( value ); // your validation } });
|
|
|
typomaniac

msg:4513531 | 10:36 pm on Oct 29, 2012 (gmt 0) |
Thanx a million Fotiman--worked like a charm. I had passed right by that one because in the post at Adobe forums the question said it was looking for only allow where I was looking for alpha only. That will teach me to search more venues next time. A good thing also though because anyone else in the same predicament can benefit from your post. Does need modified a tad though because it will allow anything to be entered as is if an alpha char is included. Testing now with /^[a-z]$/
|
Fotiman

msg:4513545 | 11:29 pm on Oct 29, 2012 (gmt 0) |
Ah, good catch. Nice modification. :)
|
typomaniac

msg:4513617 | 3:57 am on Oct 30, 2012 (gmt 0) |
I'm back at being confused again--while adding the ^ at the beginning and $ at the end made it impossible to add anything but alpha characters it shows an error if more than one char is entered.
|
daveVk

msg:4513634 | 5:42 am on Oct 30, 2012 (gmt 0) |
try /^[a-z]*$/ that is zero or more alphas
|
typomaniac

msg:4513635 | 5:50 am on Oct 30, 2012 (gmt 0) |
Thank you so much daveVk--that hit the nail on the head. Now I can sleep--been messing with this thing for hours since before the 1st post.
|
|