Passing Values between Frames... please Help 
Author Message
 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


============================================================



Tue, 13 Nov 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Help please..passing var's between frames

2. Please Help - Passing SELECT values to ASP

3. passing value to pop-up window. Please help

4. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

5. Please tell me how to pass an array between frames

6. PLEASE HELP PLEASE HELP PLEASE HELP

7. Passing values from Frameset to child frames.

8. Frames and ASP and passing parameters / values

9. Passing a value between frames

10. passing values between frames

11. passing a form field value from a page to a frame's page

12. passing values to pop-up window. Please helpt

 

 
Powered by phpBB® Forum Software