var strEmail = formName.fieldName.value
// Edit that line so it points to the right field.
var arrEmail = strEmail.split(vbCRLF)
// I don't think it's vbCRLF you're looking for though - I might be wrong
for(var x = 0; x < arrEmail.length; x++){
if(validateEmail(arrEmail[x])){
// Do something if the address passes
}
else{
// Do something if it fails
}
}
Hope that helps,
Chris Tifer
----- Original Message -----
From: "Steve Abaffy" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 3:03 PM
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 PROTECTED]