[thelist] ASP passing value to javascript for loop

Gary Swanson gswanson at daystarinc.com
Mon Mar 18 13:45:00 CST 2002


I am trying to pass a value to javascript from an ASP page and am stuck.
I have passed the value within the ASP by creating a hidden input field with
the value assigned to it.

I.E. input type=hidden name=repeatval value=response.write(subcounter).

The problem is, I need to use this value in a javascript for loop.

i.e. for (i=1; i < repeatval; i++) {
{

I have tried assigning the repeatval field in javascript with repeatval =
document.form.value this works, but the for loop errors out.

Any ideas.

Thanks

Gary




More information about the thelist mailing list