Re: What happened to my code



On Apr 29, 12:52 am, hon123456 <peterhon...@xxxxxxxxxxxx> wrote:
Dear all,

I have the following java code:

<script language="javascript" type="text/javascript">

var customearray = new array(400);

for (var i=0;i<400;i++) {
customarray[i] = "'" + <%=rs("name")%> + "'";
}

</script>

The broser complians at for (var i=0;i<400;i++) {customarray[i] = "'"
+ <%=rs("name")%> + "'";}

It saids ";" is needed. What's wrong with my code?

Thanks.

What does <%= rs("name") %> expand to? Also, this is getting expanded
server-side, right?
.