Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a set of frames that form on

Status
Not open for further replies.

Oceanic7777

Technical User
Mar 30, 2001
14
US
I have a set of frames that form one page. The TOP frame has letters of the alphabet. If a user clicks on the letter A, the LEFT frame goes to "A.html". Is there anyway that I can make the MainContent frame refresh to a page when the user clicks on the letter of her choice?

I've tried using http refresh in the LEFT frame so that when the user opens "A.html" in the LEFT frame, the MainContent frame will refresh to "A2.html" for example.

I have tried to define the target in the http refresh string but I'm not sure if this is possible. If so, I may be using the wrong code.

Another option would be linking the letters in the TOP frame to two different pages. If a user clicks on the letter A, the LEFT frame will display A.html and the MainContent Frame will display A2.html.

Is any of this possible?

The LEFT frame is used for a short description or set of matches under the letter A. The MainContent frame will contain expanded information (contained in A2.html, etc... Family Address, email, phone, etc....)

This is for a Family People directory.
 
You can do it this way :
in top frame page
Code:
<Script language=&quot;javascript&quot;>
  function ShowPage(letter) {
    parent.LEFT.location.href = letter + &quot;.htm&quot;;
    parent.MAIN.location.href = letter + &quot;2.htm&quot;;
  }
</script>
<A Href=&quot;#&quot; onclick=&quot;ShowPage('A');&quot;>A</A>
<A Href=&quot;#&quot; onclick=&quot;ShowPage('B');&quot;>B</A>
<A Href=&quot;#&quot; onclick=&quot;ShowPage('C');&quot;>C</A>
For this to work, change the name of LEFT and MAIN frames to the real names you use. Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top