Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: actionscript to validate email address, anyone? |
From: | Neal Cabage |
Date: | Tue, 14 Mar 2000 03:53:31 GMT |
Why not do Flash script validation? Check for the "@" and "." substrings
for minimal validations. I have a working example I did as a POC for a
current project. Email me privately if you want the example FLA file.
Basically, the syntax just looks something like this:
On (Release)
If (txtEmail eq "")
Set Property ("errorHeader", Visibility) = "1"
Set Variable: "txtError" = "We need your email."
Else If (Length (txtEmail) < 7)
Set Property ("errorHeader", Visibility) = "1"
Set Variable: "txtError" = "Not a valid Email Address."
Else
Load Variables ("www.forExample.com", 0, vars=POST
Set Property ("errorHeader", Visibility) = 0
End If
End On
Neal
----- Original Message -----
From: Eric Dunham <brokencorridor [dot] net>
To: <flasherchinwag [dot] com>
Sent: Monday, March 13, 2000 11:55 PM
Subject: RE: FLASH: actionscript to validate email address, anyone?
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;
}
}
file://-->
</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
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, Eric Dunham
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]