Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: actionscript to validate email address, anyone? |
From: | Eric Dunham |
Date: | Tue, 14 Mar 2000 00:09:15 GMT |
I don't know how much good this will do you, but here is a simple (but good
:) JavaScript email validator
----------------------------------------------------
<html>
<head>
<title>Email Test</title>
<script language="JavaScript">
<!--
function IsEmail(email)
{
if(email)
{
if(email.indexOf('@') != -1
&& email.indexOf('.') != -1
&& email.charAt(email.lastIndexOf('.') + 1) != '')
{
return true;
}
else
{
alert('You did not enter a valid email address!');
return false;
}
}
else
{
alert('You did not enter an email address!');
return false;
}
}
//-->
</script>
</head>
<body>
<form name="email_test">
<input type=text name="email" size=30
nBlur="if(!IsEmail(this.value)){ focus() };">
</form>
</body>
</html>
----------------------------------------------------
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of Torbjorn
Caspersen
Sent: Monday, March 13, 2000 4:08 AM
To: flasherchinwag [dot] com
Subject: FLASH: actionscript to validate email address, anyone?
I'm looking for the actionscript code to validate whether a textvariable
contains a valid email address or not. I could probably do it myself,
given enough time, but if someone has a debugged one ready, I'd be
grateful.
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The Worlds Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: actionscript to validate emai, Neal Cabage
Replies
FLASH: actionscript to validate email ad, Torbj�rn Caspersen
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]