Text only validation

View: New views
9 Messages — Rating Filter:   Alert me  

Text only validation

by Torrent Girl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello All

I have found TONS of scripts that will require a text field to be numbers only.

I am looking for one that will require a fields to except letters only.

Does anyone know of one?

Thanks
tGirl

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2879
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Text only validation

by James Holmes-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can use regular expressions to do this kind of validation.

On 6/27/06, Torrent Girl <torrentgirl@...> wrote:
> Hello All
>
> I have found TONS of scripts that will require a text field to be numbers only.
>
> I am looking for one that will require a fields to except letters only.
>
> Does anyone know of one?

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2880
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

RE: Text only validation

by Larry Juncker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I LOVE IT when people give simple answer without giving an answer.......

Try this to get what you want for your regex

Value Meaning
[:digit:] Only the digits 0 to 9
[:alnum:] Any alphanumeric character 0 to 9 OR A to Z or a to z.
[:alpha:] Any alpha character A to Z or a to z.
[:blank:] Space and TAB characters only.
[:xdigit:] .
[:punct:] Punctuation symbols . , " ' ? ! ; :
[:print:] Any printable character.
[:space:] Any space characters.
[:graph:] .
[:upper:] Any alpha character A to Z.
[:lower:] Any alpha character a to z.
[:cntrl:] .

There is a pretty good User Expression - User Gudie at this address
http://www.zytrax.com/tech/web/regex.htm 



-----Original Message-----
From: James Holmes [mailto:james.holmes@...]
Sent: Monday, June 26, 2006 11:10 PM
To: Javascript
Subject: Re: Text only validation

You can use regular expressions to do this kind of validation.

On 6/27/06, Torrent Girl <torrentgirl@...> wrote:
> Hello All
>
> I have found TONS of scripts that will require a text field to be numbers
only.
>
> I am looking for one that will require a fields to except letters only.
>
> Does anyone know of one?

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2887
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Text only validation

by felipevaldez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/27/06, Larry Juncker <junckerl@...> wrote:
>
> I LOVE IT when people give simple answer without giving an answer.......


I *love* it when people give me pointers to a solution, instead of doing my
homework for me.
I also *love* using google, instead of bugging other people @
javascript_official.

Try this to get what you want for your regex

>
> Value Meaning
> [:digit:] Only the digits 0 to 9
> [:alnum:] Any alphanumeric character 0 to 9 OR A to Z or a to z.
> [:alpha:] Any alpha character A to Z or a to z.
> [:blank:] Space and TAB characters only.
> [:xdigit:] .
> [:punct:] Punctuation symbols . , " ' ? ! ; :
> [:print:] Any printable character.
> [:space:] Any space characters.
> [:graph:] .
> [:upper:] Any alpha character A to Z.
> [:lower:] Any alpha character a to z.
> [:cntrl:] .
>
> There is a pretty good User Expression - User Gudie at this address
> http://www.zytrax.com/tech/web/regex.htm
>
>
>
> -----Original Message-----
> From: James Holmes [mailto:james.holmes@...]
> Sent: Monday, June 26, 2006 11:10 PM
> To: Javascript
> Subject: Re: Text only validation
>
> You can use regular expressions to do this kind of validation.
>
> On 6/27/06, Torrent Girl <torrentgirl@...> wrote:
> > Hello All
> >
> > I have found TONS of scripts that will require a text field to be
> numbers
> only.
> >
> > I am looking for one that will require a fields to except letters only.
> >
> > Does anyone know of one?
>
> --
> CFAJAX docs and other useful articles:
> http://jr-holmes.coldfusionjournal.com/
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2894
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Text only validation

by Torrent Girl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

isn't that what this list is for to get help?

I searched google...I always try to find a solution before posting


>On 6/27/06, Larry Juncker <junckerl@...> wrote:
>>
>> I LOVE IT when people give simple answer without giving an answer.......
>
>
>I *love* it when people give me pointers to a solution, instead of doing my
>homework for me.
>I also *love* using google, instead of bugging other people @
>javascript_official.
>
>Try this to get what you want for your regex
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2896
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Text only validation

by Massimo Foti-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You may try this library:
http://www.massimocorner.com/validator/

See the "pattern" feature:
http://www.massimocorner.com/validator/reference/index.htm

----------------------------  
Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
----------------------------  


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2897
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Text only validation

by felipevaldez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 6/27/06, Torrent Girl <torrentgirl@...> wrote:
> isn't that what this list is for to get help?
>
> I searched google...I always try to find a solution before posting
>
>

Congratulations!
I wish more people were like you!

--
//f3l
there seems to be quite a debate, on wether linux is a toaster, or a
unix clone...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2899
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Text only validation

by Torrent Girl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I found my solution and let me say that this is a great example of how to help newbie in communities such as this one - samples of syntax.

http://www.codingforums.com/archive/index.php?t-10374.html

Enjoy.




>On 6/27/06, Torrent Girl <torrentgirl@...> wrote:
>> isn't that what this list is for to get help?
>>
>> I searched google...I always try to find a solution before posting
>>
>>
>
>Congratulations!
>I wish more people were like you!
>
>--
>//f3l
>there seems to be quite a debate, on wether linux is a toaster, or a
>unix clone...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2905
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Re: Text only validation

by Torrent Girl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I found my solution and let me say that this is a great example of how to help newbie in communities such as this one - samples of syntax.

http://www.codingforums.com/archive/index.php?t-10374.html

Enjoy.




>On 6/27/06, Torrent Girl <torrentgirl@...> wrote:
>> isn't that what this list is for to get help?
>>
>> I searched google...I always try to find a solution before posting
>>
>>
>
>Congratulations!
>I wish more people were like you!
>
>--
>//f3l
>there seems to be quite a debate, on wether linux is a toaster, or a
>unix clone...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2904
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
LightInTheBox - Buy quality products at wholesale price