Connecting Tech Pros Worldwide Forums | Help | Site Map

email protection

Jeroen van vliet
Guest
 
Posts: n/a
#1: Jul 20 '05
Hello, is there a validation script that users cannot fill in there email?
so that they cannot use @ . So what i need is that they cannot fill in an
email, and if they do there will be a popup

Jeroen



Evertjan.
Guest
 
Posts: n/a
#2: Jul 20 '05

re: email protection


Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=blue]
> Hello, is there a validation script that users cannot fill in there
> email? so that they cannot use @ . So what i need is that they cannot
> fill in an email, and if they do there will be a popup
>
> Jeroen[/color]

Het is niet erg duidelijk wat je precies wil.
Misschien kan je het beter in het Nederlands vertellen, Jeroen?

Gaat het om een html pagina? Hoe vul je daar een email op in?
Of is dit een vraag voor een email client, zoals Outlook ?

Wat verwacht je van javascript? Clientside of serverside?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan.
Guest
 
Posts: n/a
#3: Jul 20 '05

re: email protection


Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=blue]
> Hello, is there a validation script that users cannot fill in there
> email? so that they cannot use @ . So what i need is that they cannot
> fill in an email, and if they do there will be a popup
>
> Jeroen[/color]

Het is niet erg duidelijk wat je precies wil.
Misschien kan je het beter in het Nederlands vertellen, Jeroen?

Gaat het om een html pagina? Hoe vul je daar een email op in?
Of is dit een vraag voor een email client, zoals Outlook ?

Wat verwacht je van javascript? Clientside of serverside?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jeroen van vliet
Guest
 
Posts: n/a
#4: Jul 20 '05

re: email protection


Beste Evertjan,

Het is namelijk zo, ik heb een formulier, met een input veld, Ik wil een
client-side met javascript realizeren, zodat de klanten geen email adres
mogen invullen in het betreffende input veld. Als ze dan een @ gebruiken of
iets wat op een emailadres lijkt, moet het een return false geven.

Bedankt

Jeroen[color=blue]
> Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=green]
> > Hello, is there a validation script that users cannot fill in there
> > email? so that they cannot use @ . So what i need is that they cannot
> > fill in an email, and if they do there will be a popup
> >
> > Jeroen[/color]
>
> Het is niet erg duidelijk wat je precies wil.
> Misschien kan je het beter in het Nederlands vertellen, Jeroen?
>
> Gaat het om een html pagina? Hoe vul je daar een email op in?
> Of is dit een vraag voor een email client, zoals Outlook ?
>
> Wat verwacht je van javascript? Clientside of serverside?
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)[/color]


Jeroen van vliet
Guest
 
Posts: n/a
#5: Jul 20 '05

re: email protection


Beste Evertjan,

Het is namelijk zo, ik heb een formulier, met een input veld, Ik wil een
client-side met javascript realizeren, zodat de klanten geen email adres
mogen invullen in het betreffende input veld. Als ze dan een @ gebruiken of
iets wat op een emailadres lijkt, moet het een return false geven.

Bedankt

Jeroen[color=blue]
> Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=green]
> > Hello, is there a validation script that users cannot fill in there
> > email? so that they cannot use @ . So what i need is that they cannot
> > fill in an email, and if they do there will be a popup
> >
> > Jeroen[/color]
>
> Het is niet erg duidelijk wat je precies wil.
> Misschien kan je het beter in het Nederlands vertellen, Jeroen?
>
> Gaat het om een html pagina? Hoe vul je daar een email op in?
> Of is dit een vraag voor een email client, zoals Outlook ?
>
> Wat verwacht je van javascript? Clientside of serverside?
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)[/color]


Evertjan.
Guest
 
Posts: n/a
#6: Jul 20 '05

re: email protection


Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=blue][color=green]
>> Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=darkred]
>> > Hello, is there a validation script that users cannot fill in there
>> > email? so that they cannot use @ . So what i need is that they
>> > cannot fill in an email, and if they do there will be a popup
>> >
>> > Jeroen[/color]
>>
>> Het is niet erg duidelijk wat je precies wil.
>> Misschien kan je het beter in het Nederlands vertellen, Jeroen?
>>
>> Gaat het om een html pagina? Hoe vul je daar een email op in?
>> Of is dit een vraag voor een email client, zoals Outlook ?
>>
>> Wat verwacht je van javascript? Clientside of serverside?[/color]
>
> Het is namelijk zo, ik heb een formulier, met een input veld, Ik wil
> een client-side met javascript realizeren, zodat de klanten geen email
> adres mogen invullen in het betreffende input veld. Als ze dan een @
> gebruiken of iets wat op een emailadres lijkt, moet het een return
> false geven.[/color]

[graag onderquoten op usenet]

Lijkt mij niet zo zinvol, dan kan je dat inputveld beter weglaten, maar
goed:

<form onsubmit="return valideer()" id=f1 action="...">
<input id=ip1 name=ip1>
</form>

<script>
function valideer() {
return !/@/.test(document.forms.f1.ip1.value)
}
</script>

IE6 tested


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan.
Guest
 
Posts: n/a
#7: Jul 20 '05

re: email protection


Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=blue][color=green]
>> Jeroen van vliet wrote on 10 aug 2003 in comp.lang.javascript:[color=darkred]
>> > Hello, is there a validation script that users cannot fill in there
>> > email? so that they cannot use @ . So what i need is that they
>> > cannot fill in an email, and if they do there will be a popup
>> >
>> > Jeroen[/color]
>>
>> Het is niet erg duidelijk wat je precies wil.
>> Misschien kan je het beter in het Nederlands vertellen, Jeroen?
>>
>> Gaat het om een html pagina? Hoe vul je daar een email op in?
>> Of is dit een vraag voor een email client, zoals Outlook ?
>>
>> Wat verwacht je van javascript? Clientside of serverside?[/color]
>
> Het is namelijk zo, ik heb een formulier, met een input veld, Ik wil
> een client-side met javascript realizeren, zodat de klanten geen email
> adres mogen invullen in het betreffende input veld. Als ze dan een @
> gebruiken of iets wat op een emailadres lijkt, moet het een return
> false geven.[/color]

[graag onderquoten op usenet]

Lijkt mij niet zo zinvol, dan kan je dat inputveld beter weglaten, maar
goed:

<form onsubmit="return valideer()" id=f1 action="...">
<input id=ip1 name=ip1>
</form>

<script>
function valideer() {
return !/@/.test(document.forms.f1.ip1.value)
}
</script>

IE6 tested


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Closed Thread