I have a frameset with two frames, one over the other. In the top frame i have text boxes and a submit button in a form. How do I send the values in the text boxes in the top frame to variables in the bottom frame?
the code for the top frame currently looks like:
<form name="frmSearch" method="post" action="parent.frames['Bottom'].location='Test.asp';">
<DIV STYLE="LEFT: 0px; POSITION: absolute; TOP: 200px">
<table width="800" align="center" border="1" cellspacing="0" bcolor="white">
<tr><td colspan=8 class=largeheader>Possible Matches</td></tr>
<tr>
<td class=smallheader>Payee Name</td>
</tr>
<tr>
<td class=smallheader><input type="text" name="txtPayeeName" size="35" value="--Search in this row--"></input></td>
</tr>
</table>
</DIV>
<DIV STYLE="LEFT:208px; POSITION:absolute; TOP:203px;">
<input type="submit" value="Search">
<input type="hidden" name="txtTableType" value="Search">
</DIV>
</form>
And the page that i am posting to is currently:
<%
dim sType
sType=request.form("TableType"
sPayeeName=request.form("txtPayeeName"
response.write "Value: " & sType & " Payeename=" &
response.end
%>
<html>
<head>
<title>Test</title>
</head>
<body>
</body>
</html>
The frameset is constructed like:
<frameset rows="275,*" framespacing="0" frameborder="0">
<frame src="MatchFrameTop.asp?<%=sQueryString%>" name="Top" id="Top"
frameborder="0" scrolling="auto" noresize marginwidth="0" marginheight="0">
<frame src="Test.asp" name="Bottom" id="Bottom"
frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
</frameset>
any help is greatly appreciated.
Rich
the code for the top frame currently looks like:
<form name="frmSearch" method="post" action="parent.frames['Bottom'].location='Test.asp';">
<DIV STYLE="LEFT: 0px; POSITION: absolute; TOP: 200px">
<table width="800" align="center" border="1" cellspacing="0" bcolor="white">
<tr><td colspan=8 class=largeheader>Possible Matches</td></tr>
<tr>
<td class=smallheader>Payee Name</td>
</tr>
<tr>
<td class=smallheader><input type="text" name="txtPayeeName" size="35" value="--Search in this row--"></input></td>
</tr>
</table>
</DIV>
<DIV STYLE="LEFT:208px; POSITION:absolute; TOP:203px;">
<input type="submit" value="Search">
<input type="hidden" name="txtTableType" value="Search">
</DIV>
</form>
And the page that i am posting to is currently:
<%
dim sType
sType=request.form("TableType"
sPayeeName=request.form("txtPayeeName"
response.write "Value: " & sType & " Payeename=" &
response.end
%>
<html>
<head>
<title>Test</title>
</head>
<body>
</body>
</html>
The frameset is constructed like:
<frameset rows="275,*" framespacing="0" frameborder="0">
<frame src="MatchFrameTop.asp?<%=sQueryString%>" name="Top" id="Top"
frameborder="0" scrolling="auto" noresize marginwidth="0" marginheight="0">
<frame src="Test.asp" name="Bottom" id="Bottom"
frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
</frameset>
any help is greatly appreciated.
Rich