bangalibhai
Programmer
Hi,
I need some input on the following. It is possible to read in the value of a server side variable from javascript as stated below:
<HTML>
<SCRIPT language="javascript">
<%
Dim anynum
anynum = 100
%>
alert ("<%=anynum%>"
</script>
<%
Response.Write anynum
%>
</HTML>
Is it possible to do just the opposite? Read the value of a javascript variable from server side VBScript by doing the following?
<HTML>
<SCRIPT language="javascript">
var anynum2=100;
<%
Dim anynum
anynum = anynum2 'THIS DOES NOT WORK
%>
alert ("<%=anynum%>" //this is blank
</script>
<%
Response.Write anynum
%>
</HTML>
I need some input on the following. It is possible to read in the value of a server side variable from javascript as stated below:
<HTML>
<SCRIPT language="javascript">
<%
Dim anynum
anynum = 100
%>
alert ("<%=anynum%>"
</script>
<%
Response.Write anynum
%>
</HTML>
Is it possible to do just the opposite? Read the value of a javascript variable from server side VBScript by doing the following?
<HTML>
<SCRIPT language="javascript">
var anynum2=100;
<%
Dim anynum
anynum = anynum2 'THIS DOES NOT WORK
%>
alert ("<%=anynum%>" //this is blank
</script>
<%
Response.Write anynum
%>
</HTML>