StyM
09-29-2003, 09:43 PM
hello Good Day.
i have a problem on how to pass a java string array to my javascript array.
i have this in my head.
<%
String strOnhand[] = new String[100];
int icounter = 0;
for ( int x = 0 ; x < 100 ; x++ ) {
strOnhand[x] = "Name" + String.valueOf(x);
}
%>
how can i pass this to my javascript array?
<script>
function test() {
var arr[] = ???????? <- i dont know how to do it???
}
</script>
need help badly, thanks in advance.
i have a problem on how to pass a java string array to my javascript array.
i have this in my head.
<%
String strOnhand[] = new String[100];
int icounter = 0;
for ( int x = 0 ; x < 100 ; x++ ) {
strOnhand[x] = "Name" + String.valueOf(x);
}
%>
how can i pass this to my javascript array?
<script>
function test() {
var arr[] = ???????? <- i dont know how to do it???
}
</script>
need help badly, thanks in advance.