Thanks, I knew I was forgetting something easy and it was the .split method :)
-----Original Message----- From: EXT-Sauceda, Gilbert [mailto:gilbert.sauceda@;boeing.com] Sent: Tuesday, October 29, 2002 3:42 PM To: ActiveServerPages Subject: RE: Easy Javascript question (I hope) FORGOT ABOUT THE CARRIAGE RETURN ON THE FIRST LINE var email = emailAddress.split("\r\n"); for(x = 0; x < email.length; x++) { if(validateEmail(email[x])) sendErrorMessage(); } -----Original Message----- From: EXT-Sauceda, Gilbert Sent: Tuesday, October 29, 2002 1:40 PM To: 'ActiveServerPages' Subject: RE: Easy Javascript question (I hope) var email = emailAddress.split(",") for(x = 0; x < email.length; x++) { if(validateEmail(email[x])) sendErrorMessage(); } -----Original Message----- From: Steve Abaffy [mailto:sabaffy@;cditelecom.com] Sent: Tuesday, October 29, 2002 12:03 PM To: ActiveServerPages Subject: Easy Javascript question (I hope) 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%% --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
