//note, you need to split on crlf, cr, or lf, different platforms
// behave differently. the following *should* work
email = form.elements['EmailAddress').split(/(\r\n|\r|\n)/);
if (email)
for (var i=0; i<email.length; i++)
if (validateEmail(email[i])
sendErrorMessage();
Steve Abaffy wrote:
Hello,
I have a text box that has a list of email address in them and I have a
function which validates email address. I want to know what the javascript
equivalant of the following.
email = Split(request.form("EmailAddress"),vbcrlf)
For x = 0 to UBOUND(email)
if(validateEmail(email(x))) then
sendErrorMessage
end if
Next
---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%
--
-----------------------------------------------------------------------
Michael J. Ryan | ICQ: 4935386
tracker1(at)theroughnecks(dot)com | AIM/AOL: azTracker1
Roughneck BBS: | Yahoo: azTracker1
http://www.theroughnecks.net | MSN: (email address)
telnet://theroughnecks.net | Trillian: www.trillian.cc
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]