email protection | | |
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 | | | | 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) | | | | 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) | | | | 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] | | | | 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] | | | | 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) | | | | 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) |  | Similar JavaScript / Ajax / DHTML bytes | | | Forums
Visit our community forums for general discussions and latest on Bytes
/bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 229,155 network members.
|