So much for a quick and easy way to keep from refreshing my page.
Code Sample:
<html>
<head>
<title>Test Page</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="VBScript">
function CAC_checkValue()
MsgBox(<%=Session("xyz")%>)
end function
</script>
</head>
<body bgcolor="#fef8e9" onLoad="" onFocus="CAC_checkValue()">
TIA,
Allen
Send replies to "hossnine....@hotmail.com"
Remove ".nolikespam"
hth
Henrik Ohm
"Allen" <a...@nowhere.com> wrote in message
news:ktkfsscdcjip2toe8...@4ax.com...
To confirm this, look at the code in the browser. Nowhere will you see any
reference to any session vars. Nor will you see any <% %> pairs.
Allen wrote in message ...
i.e. putting MsgBox parameter in double quotes and argument to Session()
in single quotes...
Mehul
Allen <a...@nowhere.com> wrote in message
news:ktkfsscdcjip2toe8...@4ax.com...
> I am writing a web page that has a layer that I wish to be able to
> show or hide dynamically based on a session variable
> <%=Session("xyz")%>. The trigger will be the onFocus event in the
> body tag. When I call my custom JS or VBS function that has my
> session variable (lets say MsgBox (<%=Session("xyz")%>)) I either get
> an error that basically says my variable is not valid or I get a blank
> value.
>