View Full Version : CyanBlue... Email101
atomic
02-25-2008, 06:36 AM
Question for you...
In your String.prototype.isEmail = function()...
At the bottom, I find this...
...
if (atIndex > pIndex)
{
this.__error = "Invalid Email Address : Email Address must be in the form of name@domain.domaintype";
return false;
}
...
Is this.__error = "Invalid... legit and the double underscore not an error or typo?
All other previous checks, trace an error message, but what does the above do?
CyanBlue
02-25-2008, 02:37 PM
Well... I did not write the code... Mike Chambers did...
So, my guess is that he's using that variable to keep track of the error messages... Maybe he had some more ingenious tool that gives you more interactive error message whenever it detects the value change in that property...
Or, he had an internal tool that does all that, but he forgot to take the last line out before he publishes the final code... I ain't got a clue... ;)
But the bottom line is that that function needs to be re-written cuz it ain't even working in AS2 mode... :(
atomic
02-25-2008, 02:54 PM
Ok, thanks for the info...
Guess that line can be taken out...
As for it not working with AS2.0, I just integrated it in a AS2.0 file, and it works fine for me, although Hotmail doesn't like your PHP validation or certification (whatever they're calling it...) bit, and warns me that the message could be harmful...
CyanBlue
02-25-2008, 02:56 PM
Well... Hotmail is always tricky... They just add in more security whenever they have time... There could be some more stuff that can be add on top of the existing PHP file, but I think that's wasting time because those Hotmail or Yahoo will add another test argument to validate if the mail is good one or a spam... :(
atomic
02-25-2008, 03:21 PM
Well, as is, it doesn't really end up in the Spam folder, it ends up in the inbox...
Just get a warning that the message could be harmful...
Go figure! Maybe it's coming from oldnewbie! :eek:
CyanBlue
02-25-2008, 03:26 PM
Well... Like I was saying, it is a losing battle... There is no good solution for that... Unless oldnewbie have a good talk with the M$ managers... :(
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.