H I O X INDIA
FREE Javascript
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Pagination
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





Alphanumeric Validation Function


About
This script function will help you to validate string / character for alphanumeric values.


Features
a)The javascript function will return false when the string passed contains charcter other then alphanumeric.
b)It returns true on correct validation.
c)Just copy the code in to your page and use it.


Preview
Alpha numeric Testing :
Enter a character / string and test it
[ e.g: alfha or alp#num]


Code
<!-- Script by hscripts.com -->
<script language=javascript>
function alphanumeric(alphane)
{
	var numaric = alphane;
	for(var j=0; j<numaric.length; j++)
		{
		  var alphaa = numaric.charAt(j);
		  var hh = alphaa.charCodeAt(0);
		  if((hh > 47 && hh<58) || (hh > 64 && hh<91) || (hh > 96 && hh<123))
		  {
		  }
		else	{
			 return false;
		  }
		}
 return true;
}
</script>
<!-- Script by hscripts.com -->
Release Date - 15-12-2004

Get free version without ©copyright link for just 5



Usage
Here we have explained with a form
a)Creating the form using following HTML code
    <form name="test" onSubmit="return alphanumeric(test.mailf.value)">
    <input name=mailf type=text>
    <input type=submit value=validate>
    </form>
b)The alphanumeric() function is triggered on submission of the form.
c)Just copy the javascript code and use it for free.





License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others