JavaScript and client side scripting.
Moderator: General Moderators
Sacapuss
Forum Commoner
Posts: 40 Joined: Mon May 16, 2005 9:46 pm
Location: Earth...
Post
by Sacapuss » Sat Jul 09, 2005 2:18 pm
Hi !
Could anyone let me know why the hereunder function lets the ' ' throught ?
Code: Select all
function car_verifier(input)
{
longueur=input.value.length
if(longueur>0)
{
k=input.valueїlongueur-1]
if(!(k>='a' && k<='z') && !(k>='A' && k<='Z') && !(k>=0 && k<=9) && k!='@' && k!='_' && k!='-' && k!='.')
{
alert('Le caract?re \''+k+'\' ne semble pas valide !')
input.value=input.value.slice(0, longueur-1)
}
}
}
See
http://lamaisonbrulee.chez.tiscali.fr/index.php?ecrire
Thanx for your help !
J_Iceman05
Forum Commoner
Posts: 72 Joined: Wed Aug 03, 2005 10:52 am
Location: Las Vegas, NV
Post
by J_Iceman05 » Wed Sep 07, 2005 12:23 pm
Sacapuss wrote: Hi !
Could anyone let me know why the hereunder function lets the ' ' throught ?
Code: Select all
function car_verifier(input)
{
longueur=input.value.length
if(longueur>0)
{
k=input.valueїlongueur-1]
if(!(k>='a' && k<='z') && !(k>='A' && k<='Z') && !(k>=0 && k<=9) && k!='@' && k!='_' && k!='-' && k!='.')
{
alert('Le caract?re \''+k+'\' ne semble pas valide !')
input.value=input.value.slice(0, longueur-1)
}
}
}
See
http://lamaisonbrulee.chez.tiscali.fr/index.php?ecrire
Thanx for your help !
If you are not getting the information you want, that may be because you do not understand english well enough.
Read the following, you have all the info you need
viewtopic.php?t=35404&highlight=mail+java
viewtopic.php?p=184866