943,900 Members | Top Members by Rank

Ad:
May 23rd, 2008
0

Number\Letter\Etc Only Validation in Firefox

Expand Post »
I have done this in IE but unable to in firefox.

So can someone generate a simple piece of code using javascript that will allow me to PHYSICALLY ONLY enter Numbers\Letters\Etc. Not a message popping up once the form is submitted stating that I have numbers where letters should be etc. Just so that I am physically unable to enter text or numbers into the text field.

Thanks, Regards X
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
May 23rd, 2008
0

Re: Number\Letter\Etc Only Validation in Firefox

Hi OmniX!

What do you want exactly? Is it that you want to validate the field with only text or with only number? If it is clear to me than only I will try or may be in a position to solve your problem.
Reputation Points: 13
Solved Threads: 1
Light Poster
ardeezstyle is offline Offline
49 posts
since May 2008
May 23rd, 2008
0

Re: Number\Letter\Etc Only Validation in Firefox

I have several fields that I want only TEXT, only NUMBERS and only SPECIAL CHARACTERS (specific ones).

Javascript I want is that it wont let you PHYSICALLY input the wrong chracters.

Eg. Letters only then no numbers, etc.

I was able to do this in IE but unable to in FF.

I would like a solution for FF.

Understand what I mean now? Thanks
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
May 23rd, 2008
0

Re: Number\Letter\Etc Only Validation in Firefox

just so you know if you use javascript for this people can still paste things into the textbox, unless you disable ctrl+v and right clicking on the text box
Reputation Points: 11
Solved Threads: 6
Junior Poster in Training
hooray is offline Offline
62 posts
since Jan 2008
May 23rd, 2008
0

Re: Number\Letter\Etc Only Validation in Firefox

Ya I know the problem I had in IE.

Well you got any other ideas than not to use javascript?

Or any ideas how to disable crtl+v?
(Dont need to disable right click to paste code into a cell, I think)
I asked this before and I got no answers a while back

Main question how to validate text field in FF!!
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007
May 25th, 2008
0

Re: Number\Letter\Etc Only Validation in Firefox

Ya I've an idea. Do 1 think. In the INPUT tag use READONLY.

It will work, actually it works in my case.

If urproblem is solved, Please mark it solved
Reputation Points: 13
Solved Threads: 1
Light Poster
ardeezstyle is offline Offline
49 posts
since May 2008
May 25th, 2008
0

Re: Number\Letter\Etc Only Validation in Firefox

Are you reading this thread(even the title) at all?

I said how to validate input in firefox?

Please read before posting and do not post message without reading the thread creating unrequired messages.
Last edited by OmniX; May 25th, 2008 at 10:25 pm.
Reputation Points: 31
Solved Threads: 10
Practically a Master Poster
OmniX is offline Offline
652 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Using JS To Do A "Vote Only Once" Option
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Javascript with Ajax question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC