
Server side variables to client side script?
Many thanks all, I have got it now ;-)
Jim
Basically just put your server-side variables in <%= and %> when defining your client-side ones.
Example
<%
'Define your server-side vars here
Dim ServerVar
ServerVar = "Hello, Jim!"
%>
<script language="VBScript">
'Define your client-side vars to recieve your server-side ones
Dim ClientVar 'this will equal MyVar
ClientVar = <%=ServerVar%>
MsgBox ClientVar
</script>
--
---------------------
mushhead (name changed to protect innocent parties :o)
---------------------
chocoba65 at hotmail dot com
---------------------
hi,
Can anyone show me the syntax to passing serverside variables to client side
script? (vbscript)
Thankyou
Jim