
September 11th, 2000, 05:51 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Passing Values between Frames.
<i><b>Originally posted by : Padmaja Tallavajhala (coolpersona@hotmail.com)</b></i><br />I have 3 frames where I am passing a value from one frame to another. I am able to try from the 1st page to the other, but<br />I have been having no success in passing the value from the 2nd page to the 3rd page.<br /><br />I am copying over the code below. Please do help and give your tips on this.<br /><br />----------------------------------------------------------------------------------------------------------------------------------------------------<br />TestingFrames.htm<br /><br /><html><br /><br /><head><br /><title>Itinerary Arrangements</title><br /><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><br /><meta name="ProgId" content="FrontPage.Editor.Document"><br /><title>Testing Frames </title><br /></head><br /><br /><frameset cols="34,76" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0" ><br /> <frame name="contents" target="main" border="No" noresize scrolling="No" src="Frame2.asp"><br /> <frameset rows="200,*" frameborder="0" framespacing="0" border="0" ><br /> <frame BORDER="No" name="banner" scrolling="NO" NORESIZE src="Frame1.asp" target="contents"><br /> <frame BORDER="No" name="main" BORDER="0" src="Frame3.asp"><br /> </frameset><br /><br /> <noframes><br /> <body><br /> <p>This page uses frames, but your browser doesn't support them.</p><br /> </body><br /> </noframes><br /></frameset><br /><br /></html><br />------------------------------------------------------------------------------------------------------------------------------------------<br /><br />Frame1.asp<br /><br /><HTML><br /> <br /> <% <br /> <br /> stMonth = Request.Form("ReportName")<br /> <br /> %><br /><HEAD><br /> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><br /> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"><br /> <meta name="ProgId" content="FrontPage.Editor.Document"><br /> <title>Frame 1</title><br /><br /><SCRIPT LANGUAGE="JavaScript"><br /><br /> function cboName_OnChange() <br /> {<br /> document.frmFrame1.submit();<br /> }<br /><br /></SCRIPT><br /><br /></HEAD><br /><br /><BODY LEFTMARGIN="0" target="contents" TOPMARGIN="0" background="bg003t.gif" onLoad="cboName_OnChange()"><br /><br /><form action="frame2.asp" method="post" target="contents" name="frmFrame1"><br /><font size=3 type="Arial">FRAME 1</font><br /><TABLE BORDER=0 ALIGN=LEFT RULES=none WIDTH=100% CELLPADDING=0 CELLSPACING=0><br /> <br /> <TR><br /> <TD VALIGN=TOP><br /> <!----NESTED MENU SUBTABLE----><br /> <TABLE CELLSPACING=0 WIDTH=60%><br /> <TR><br /> <TD COLSPAN="3"><br /> Frame 1:<input type="text" name="EmpName" value="Padmaja"></input><br /> </TD><br /> </TR><br /> </TABLE><br /> <!----END OF NESTED CONTENT TABLE----><br /> </TD><br /> </TR> <br /></TABLE><br /><br /></BODY><br /></HTML><br />------------------------------------------------------------------------------------------------------------------------------------------------<br /><br />Frame3.asp<br /><br /><html> <head><title>Frame 3</title><br /><meta name="GENERATOR" content="Microsoft Visual Studio 6.0"><br /><%<br /><br />Dim stID <br />sttitle = Request.Form("title")<br /><br />%> </head> <body><br /><br /><form name="frmFrame3"> <br /><br /><%<br />For each item in Request.Form %><br /><Input Name = "<%=item%>" Type = "hidden" VALUE = "<% = Server.HTMLEncode(Request.Form(item)) %>"><br /><% next %><br /><br /><font size=3 type="Arial">FRAME 3</font><br><br />Title:<Input Name = EmpName value="<%=sttitle%>" Type = "text"><br /><br /></form><br /></BODY><br /></HTML><br />----------------------------------------------------------------------------------------<br /><br />Please try this code in your browser and offer any suggestions to me.<br />Waiting to hear from any of you,<br />Thanks,<br />Padmaja.<br />
|