Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Need help in javacript

Reply
Thread Tools

Need help in javacript

 
 
Anubhav star
Guest
Posts: n/a
 
      05-04-2008
How can I make a alpha numberic validation in javascript.

I want that the box should accept both alphabets and numbers..
 
Reply With Quote
 
 
 
 
Harlan Messinger
Guest
Posts: n/a
 
      05-04-2008
Anubhav star wrote:
> How can I make a alpha numberic validation in javascript.
>
> I want that the box should accept both alphabets and numbers..


Javascript question --> Javascript newsgroup.

comp.lang.javascript.

 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      05-05-2008
Scripsit frank:

> Google 'javascript + form validation'. There are plenty copy and
> paste examples.


Most of them worse than crap, of course. Everybody can put up a web page
that presents some HTML markup, CSS stylesheet, JavaScript code, or
something else and example. Everybody often does that, typically with
little clue of anything.

_Especially_ a topic like "alphabets [i.e., alphabetic characters] and
numbers" is _so_ easily mishandled by people who don't even know that
there are different alphabets and different sets of numbers. Moreover,
there's almost always a reason to impose _additional_ restrictions.

Quick test: what happens when "é" ("e" with acute accent) is entered?
Will it crash the form handler, or generate completely bogus data, or
just get rejected as nonalphanumeric (despite being very much
alphanumeric in reality, though not always matching some additional
constraints).

Reading a JavaScript book, consulting JavaScript FAQs (if they still
exist and look reasonable), and eventually asking for specific help in
the specific comp.lang.javascript group would be my way. Everyone is
entitled into choosing his own way and taking a road to the land of bugs
and oddities.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java with javacript rajujohn100@gmail.com Java 3 09-08-2008 09:55 PM
register dynamic javacript with RegisterStartupScript Jason Chan ASP .Net 1 12-03-2005 11:06 PM
two drop down list with javacript and asp weiwei ASP General 2 11-15-2005 06:20 AM
how to attach javacript to BODY tag via codebehind darrel ASP .Net 2 03-25-2005 01:18 PM
Replacing client side javacript Prashanth Javascript 2 08-06-2003 08:00 AM



Advertisments