[thelist] ASP passing value to javascript for loop
Feingold Josh S
Josh.S.Feingold at irs.gov
Mon Mar 18 13:50:07 CST 2002
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
Try this:
for (i=1; i < <%=request.form("repeatval")%> ; i++) {
}
Josh
-----Original Message-----
From: Gary Swanson [mailto:gswanson at daystarinc.com]
Sent: Monday, March 18, 2002 2:38 PM
To: thelist at lists.evolt.org
Subject: [thelist] ASP passing value to javascript for loop
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
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list