Redirecting in a separate Frame.

Results 1 to 2 of 2

Thread: Redirecting in a separate Frame.

  1. #1
    David Fleming Guest

    Default Redirecting in a separate Frame.

    I have a site that uses frames. I want to have a drop-down<BR>box to redirect the user to a new page. However, I want the<BR>new page displayed in a different frame. Can it be done?<BR>How? How do I tell the Redirect to load into a specific frame?

  2. #2
    kiran p kumar Guest

    Default RE: Redirecting in a separate Frame.

    hi,<BR> I think i have a soln for you. i have two files main.htm and page2.htm . MAIN.HTM has frames declared in it. I am calling page2.htm where drop-down box is present. i think you can understand the example down.<BR><BR>main.htm<BR>---------<BR>&#060;html&#062;<BR>&#060;head&#062;<BR>&#060; title&#062;main&#060;/title&#062;<BR>&#060;/head&#062;<BR><BR>&#060;frameset cols="232,*"&#062;<BR> &#060;frame name="contents" target="main" src="page2.htm"&#062;<BR> &#060;frame name="main"&#062;<BR> &#060;noframes&#062;<BR> &#060;body&#062;<BR><BR> &#060;p&#062;This page uses frames, but your browser doesn&#039t support them.&#060;/p&#062;<BR><BR> &#060;/body&#062;<BR> &#060;/noframes&#062;<BR>&#060;/frameset&#062;<BR><BR>&#060;/html&#062;<BR><BR><BR><BR>page2.htm<BR>---------<BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;<BR>&#060; TITLE&#062;<BR>test&#060;/TITLE&#062;<BR>&#060;SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript&#062;<BR>&#060;!--<BR><BR>function select1_onchange(value)<BR>{<BR>// here main is the target frame name<BR> parent.main.location.href = value+&#039.htm&#039<BR> } <BR><BR>//--&#062;<BR>&#060;/SCRIPT&#062;<BR>&#060;/HEAD&#062;<BR>&#060;BODY&#062;<BR><BR>&#060;SELECT id=select1 name=select1 style="HEIGHT: 22px; WIDTH: 209px" LANGUAGE=javascript onchange="return select1_onchange(select1.value)"&#062;<BR>&#060;OP TION selected value=test1&#062;test1&#060;/OPTION&#062;<BR>&#060;OPTION value=test2 &#062;test2&#060;/OPTION&#062;<BR>&#060;/SELECT&#062;<BR><BR><BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR><BR>bye<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •