
Passing Values between Frames... please Help
Hi,
I know it maybe is simple to solve this problems, but I could not find a way to
do it...
I have two frames and I just want to call an ASP on Second frame, passing it a
Value of the Text Box on First Frame.
Thank You Very Much
Carlos
Here is my code:
LOAD FRAMES:
--------------------------------
<!-- Frames -->
<FRAMESET ROWS="50%,*">
<FRAME NAME="TopFrame" SRC="Top.html" MARGINWIDTH="10" MARGINHEIGHT="10"
SCROLLING="auto" FRAMEBORDER="yes">
<FRAME NAME="BottomFrame" SRC="Bottom.asp" MARGINWIDTH="10"
MARGINHEIGHT="10" SCROLLING="auto" FRAMEBORDER="yes">
</FRAMESET>
FIRST FRAME CONTENT (Top.html):
--------------------------------
<html>
<head>
<title>Top Frame</title>
<SCRIPT TYPE="" LANGUAGE="VBScript">
Function PassValue()
PassValue = chr(34) & "Bottom.asp?CustID=" & cStr(MyForm("TextBox").Value) &
chr(34)
End Function
</SCRIPT>
</head>
<FORM NAME="MyForm">
<INPUT ID="MyText" TYPE="Text" NAME="TextBox" VALUE=" ">
<BR>
<A HREF="VbScript:PassValue" TARGET="BottomFrame" Onclick=PassValue()>Click
Here to Pass Value</A>
</FORM>
<body>
</body>
</html>
SECOND FRAME CONTENT (Bottom.asp):
-----------------------------------
<html>
<head>
<title>Bottom Frame</title>
</head>
<body>
<% Response.Write "Passed Parameter" & Request("CustID")%>
</body>
</html>
--
===========================================================
Carlos I. Nunez
Systems Analyst & Web Design
============================================================