ckerns@refuse.n et wrote:
[color=blue]
> I have a recordset (ADO) that I loop thru in ASP.
>
> How can I also assign these values to a java variable?[/color]
A Java variable?
Are you confusing Java with Javascript maybe?
If you are, and mean Javascript, try something like this:
<script type="text/javascript">
<%
Dim count
count = 0
Do While Not(RS.EOF)
count = count + 1
%>
var myJSvar<%= count %> = "<%= RS("name") %>";
<%
Loop
%>
</script>
Then just look into the HTML produced by the ASP if the result fit your
needs. (View source)
In the case you really mean Java, things get more complicated, and the
answer will depend on what you actually want to accomplish. (eg applet)
Hope this helps,
Regards,
Erwin Moller
[color=blue]
>
> tia
>
> ck[/color]
Erwin Moller wrote:
[color=blue]
> ckerns@refuse.n et wrote:
>[color=green]
>> I have a recordset (ADO) that I loop thru in ASP.
>>
>> How can I also assign these values to a java variable?[/color]
>
> A Java variable?
> Are you confusing Java with Javascript maybe?
>
> If you are, and mean Javascript, try something like this:
>
> <script type="text/javascript">
> <%
> Dim count
> count = 0
> Do While Not(RS.EOF)
> count = count + 1
> %>
> var myJSvar<%= count %> = "<%= RS("name") %>";
> <%[/color]
correction: add RS.movenext here
[color=blue]
> Loop
> %>
>
> </script>
>
>
> Then just look into the HTML produced by the ASP if the result fit your
> needs. (View source)
>
> In the case you really mean Java, things get more complicated, and the
> answer will depend on what you actually want to accomplish. (eg applet)
>
> Hope this helps,
> Regards,
> Erwin Moller
>[color=green]
>>
>> tia
>>
>> ck[/color][/color]
Comment