The site consists of a frameset with a top and bottom frame
The top frame has two butttons that increment, or decrement a value, and (by means of the framset) pass the value to the bottom frame where it is displayed. I need to convert the value that is passed to the bottom frame to a variable in ASP. Please find the code for all three files below:
Top Frame - "frames_t.asp"
<html>
<script language="JavaScript">
<!--
var n = 0 ;
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
n = document.forms[0].value
//-->
</script>
<body>
<center>
<form>
<input type="hidden" name="i" value="">
<input type="button" value="click to increment" onClick="n++; document.forms[0].i.value = 'n is now:' + n; parent.passText

;">
<input type="button" value="click to decrement" onClick="n--; document.forms[0].i.value = 'n is now:' + n; parent.passText

;">
</form>
</center></body>
</html>
------------------------------------
Bottom Frame - " frames_b.htm"
<html>
<body>
<form name=yourform>
<input type=text name=msg size=35 value="">
</form>
</body>
</html>
------------------------------------
Frameset - " test.htm"
<html>
<head>
<script language="JavaScript">
<!--
function passText(CountJS) {
top.frames['right'].document.yourform.msg.value = CountJS;
}
-->
</script>
</head>
<frameset rows="300,*" frameborder=1>
<frame name="left" src="frames_t.htm">
<frame name="right" src="frames_b.asp">
</frameset><noframes></noframes>
</html>