I have to sort of 50/50 disagree with you Ray.
This is an ASP group which can be both coded in VBscipt & javascript,
because most people code in VBscript thats what we see the most here.
But I do agree that the other group would get a better response
because more people in that group will know javascript more than the
people in this group.
I myself am currently learning Jscript/Javascript and will post
questions in the other group about problems in that language more.
This is not a knock at you as I've seen alot of your posts and your
very helpful (even to me in the past :))
Al
On Tue, 13 Jan 2004 15:05:10 -0500, "Ray at <%=sLocation%>"
<myfirstname at lane34 dot com> wrote:
This isn't the right group for javascript issues. .scripting.jscript is a
decent one for such questions.
Ray at work
"Scott" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl... I have the following function below in my ASP that I am
having a problem with, because I'm not that familiar with
javaScript. What I want to know is how can I tell that I
am at the end of my For-Loop, so I can prevent an extra
comma from being appended to lstRescipients variable (line
7)?
1 function getRecipients(){
2 var lstRecipients = "";
3 var lst = document.getElementById
("lstEmails");
4 for(var i=0;i<lst.options.length;i++){
5 //if (lst.options[i].selected){
6 lstRecipients +=
lst.options[i].value;
7 lstRecipients += ",";
8 //alert(i);
9 //alert(lstRecipients);
10 //}
11 }
12 return lstRecipients;
13 }