J
JT
im trying to use the following code to log whenever a user clicks through
this particlular message box - however, this currently logs regardless of
whether or not the message box was clicked - im assuming this is because the
server-side code can't see the client side if condition. but how can i set
the varMsgBox variable as a server-side variable?
<!--switch to client-side VBScript to use the MsgBox-->
<script language="VBSCRIPT">
dim varMsgBox
varMsgBox = "0"
varMsgBox = MsgBox ("<%=pop_up_text%>", 16, "Urgent Message")
'log that user clicked through the pop-up message - switch back to
server-side to call function to insert log message into the db
if varMsgBox = "1" then
<% Call dumplogfile("User clicked through the pop-up message: " &
pop_up_text)%>
end if
</script>
this particlular message box - however, this currently logs regardless of
whether or not the message box was clicked - im assuming this is because the
server-side code can't see the client side if condition. but how can i set
the varMsgBox variable as a server-side variable?
<!--switch to client-side VBScript to use the MsgBox-->
<script language="VBSCRIPT">
dim varMsgBox
varMsgBox = "0"
varMsgBox = MsgBox ("<%=pop_up_text%>", 16, "Urgent Message")
'log that user clicked through the pop-up message - switch back to
server-side to call function to insert log message into the db
if varMsgBox = "1" then
<% Call dumplogfile("User clicked through the pop-up message: " &
pop_up_text)%>
end if
</script>