User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 422,918 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,319 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1021 | Replies: 6
Reply
Join Date: Dec 2007
Posts: 355
Reputation: OmniX is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
OmniX's Avatar
OmniX OmniX is offline Offline
Posting Whiz

Number\Letter\Etc Only Validation in Firefox

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 47
Reputation: ardeezstyle is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
ardeezstyle ardeezstyle is offline Offline
Light Poster

Re: Number\Letter\Etc Only Validation in Firefox

  #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  
Join Date: Dec 2007
Posts: 355
Reputation: OmniX is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
OmniX's Avatar
OmniX OmniX is offline Offline
Posting Whiz

Re: Number\Letter\Etc Only Validation in Firefox

  #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  
Join Date: Jan 2008
Location: London, England
Posts: 57
Reputation: hooray is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
hooray hooray is offline Offline
Junior Poster in Training

Re: Number\Letter\Etc Only Validation in Firefox

  #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  
Join Date: Dec 2007
Posts: 355
Reputation: OmniX is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
OmniX's Avatar
OmniX OmniX is offline Offline
Posting Whiz

Re: Number\Letter\Etc Only Validation in Firefox

  #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  
Join Date: May 2008
Posts: 47
Reputation: ardeezstyle is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
ardeezstyle ardeezstyle is offline Offline
Light Poster

Re: Number\Letter\Etc Only Validation in Firefox

  #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  
Join Date: Dec 2007
Posts: 355
Reputation: OmniX is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
OmniX's Avatar
OmniX OmniX is offline Offline
Posting Whiz

Re: Number\Letter\Etc Only Validation in Firefox

  #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 9:25 pm.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 1:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC