Number\Letter\Etc Only Validation in Firefox

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Dec 2007
Posts: 609
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Number\Letter\Etc Only Validation in Firefox

 
0
  #1
May 23rd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 48
Reputation: ardeezstyle is an unknown quantity at this point 
Solved Threads: 1
ardeezstyle ardeezstyle is offline Offline
Light Poster

Re: Number\Letter\Etc Only Validation in Firefox

 
0
  #2
May 23rd, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 609
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: Number\Letter\Etc Only Validation in Firefox

 
0
  #3
May 23rd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 62
Reputation: hooray is an unknown quantity at this point 
Solved Threads: 6
hooray hooray is offline Offline
Junior Poster in Training

Re: Number\Letter\Etc Only Validation in Firefox

 
0
  #4
May 23rd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 609
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: Number\Letter\Etc Only Validation in Firefox

 
0
  #5
May 23rd, 2008
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!!
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 48
Reputation: ardeezstyle is an unknown quantity at this point 
Solved Threads: 1
ardeezstyle ardeezstyle is offline Offline
Light Poster

Re: Number\Letter\Etc Only Validation in Firefox

 
0
  #6
May 25th, 2008
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
Rupam Datta
ardeezstyle@gmail.com
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 609
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 8
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: Number\Letter\Etc Only Validation in Firefox

 
0
  #7
May 25th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC