Muzak, thank you for the handy google search!
Another cool thing you done!
Kurt
At 04:49 PM 11/19/06, you wrote:
http://muzakdeezign.com/flashcoders/?q=email%20validation
Muzak
___
Flashcoders@chattyfig.figleaf.com
To change your subscription opt
http://muzakdeezign.com/flashcoders/?q=email%20validation
Muzak
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Softw
uhh, attachments are not allowed here?
class Validate {
// characters allowed in e-mail addresses, not including the separators (@
and .)
public static var EMAIL_CHARS: String = "abcdefghijklmnopqrstuvwxyz_-";
// test a string for containing allowed characters only
public stati
I have attached a class which - hopefully - takes care of each
possible issue :)
Attila___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought
there is a problem with the behavior described below:
"The above script check for a "@" followed by the last instance of "."..."
This turns e-mails from some countries (like [EMAIL PROTECTED])
invalid. For example, I had to fix the e-mail validation in the code of some
CMS to develop some sites
This is much better, but not perfect yet :) It still lets pass strings
like @., [EMAIL PROTECTED], [EMAIL PROTECTED], foo@@foo.com, etc.
I think that validating carefully everything what comes from the user
is an essential thing, and we have to don't allow "breaking" programs
by wrong inputs. It
Yeah, you're right, that one is a little too simple.
Another one I've used is this:
--
// vars
var checkStr:String =
"._-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
var isValid:Boolean;
var inputTxt:TextInput;
var valBtn:Butto
Well, this is too simple, there are too many invalid strings which are
considered as valid by this script. I think if you validate the input,
then do it correctly or don't validate at all :) An incomplete
validation makes you feel that your data is valid and secure, however
it can lead to unexpect
I got a much simpler one:
Check for invalidity:
// ti = text input field
if((ti.text.indexOf("@") == -1) ||
(ti.text.indexOf(".",(ti.text.indexOf("@")+2)) == -1) ) {
// email is invalid
}
OR...
Check for validity:
// ti = text input field
if((ti.text.indexOf("@") != -1) &&
(ti.text
I found this when I was adding stuff to actionscriptclasses.com :
http://www.robgonda.com/blog/index.cfm/2006/3/1/actionscript-regular-expression-class
the download has an email validation example.
On 11/17/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> However it seems to think an e
> However it seems to think an email address with less that 4
> characters before the "@' is not valid (when it is).
So just modify it to allow less than 4 characters before the @.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription option
I am looking for an AS@ class that validates a string to see if it is a
properly formatted email address.
Does anyone have one handy? Or have you seen one around? I found one at :
http://www.bokelberg.de/actionscript/checkEmail.html
However it seems to think an email address with less that 4 ch
12 matches
Mail list logo