C
Colin Steadman
I'm trying to create a VBScript using ASP. However I'm having
problems getting data from session variables into the right places.
The example I have copied below works, however I need to replace
"data1" and "data2" with real data from a session variable.
However if I replace this:
Call OpenDoc("data1", "data2")
With this:
Call OpenDoc(<%=session("var1")%>, <%=session("var2")%>)
It breaks.
<html>
<head>
<script language=vbscript>
Sub button_onclick()
Call OpenDoc("data1", "data2")
End Sub
Sub OpenDoc(v1, v2)
msgbox v1
msgbox v2
End Sub
</script>
</head>
<body>
<input type=button name=button value="Click">
</body>
</html>
Any ideas?
TIA,
Colin
problems getting data from session variables into the right places.
The example I have copied below works, however I need to replace
"data1" and "data2" with real data from a session variable.
However if I replace this:
Call OpenDoc("data1", "data2")
With this:
Call OpenDoc(<%=session("var1")%>, <%=session("var2")%>)
It breaks.
<html>
<head>
<script language=vbscript>
Sub button_onclick()
Call OpenDoc("data1", "data2")
End Sub
Sub OpenDoc(v1, v2)
msgbox v1
msgbox v2
End Sub
</script>
</head>
<body>
<input type=button name=button value="Click">
</body>
</html>
Any ideas?
TIA,
Colin