K
Kevin
Hi,
My problem is:
when i declare variable 'recuur' in Jscript like it is below, no problem.
But if i declare 'recuur' like: var recuur=<%=recuur%>
then i get two errors:
"totday is not defined" and "syntax error: var recuur=10"
Any idea what's wrong?
Thanks
Kevin
<%
totday=request.cookies("totday") => =14
.....
sql="select range from hr order by range;"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sql, OBJDC, 3, 3
dim allhr
Set rs = objdc.execute(sql)
if not rs.eof then
allhr = rs.GetRows()
recuur = UBound(allhr, 2) + 1 => =10
end if
....
%>
.....
<script type="text/javascript">
totday=<%=totday%>
recuur=<%=recuur%>
....
My problem is:
when i declare variable 'recuur' in Jscript like it is below, no problem.
But if i declare 'recuur' like: var recuur=<%=recuur%>
then i get two errors:
"totday is not defined" and "syntax error: var recuur=10"
Any idea what's wrong?
Thanks
Kevin
<%
totday=request.cookies("totday") => =14
.....
sql="select range from hr order by range;"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sql, OBJDC, 3, 3
dim allhr
Set rs = objdc.execute(sql)
if not rs.eof then
allhr = rs.GetRows()
recuur = UBound(allhr, 2) + 1 => =10
end if
....
%>
.....
<script type="text/javascript">
totday=<%=totday%>
recuur=<%=recuur%>
....