?
Solved

How to "target" two frames at a time?

Posted on 2003-03-20
6
Medium Priority
?
161 Views
Last Modified: 2010-04-09
I've a main page with these framesets:

<frameset rows=25%,*>
     <frameset cols=20%,*>
          <FRAME name="Spigolo" src="00.html" noresize>
          <FRAME name="Top" src="TM.html" noresize>
     </frameset>
     <frameset cols=100,*>
          <FRAME name="Menu" src="LM.html" noresize>
          <frameset cols=50%,*>
               <frame name="SQ" src="SQ.html" noresize>
               <frame name="SH" src="SH.html" noresize>
          </frameset>
     </frameset>
</frameset>

The "Manu" frame is a sort of summary that contains "#" links for the SQ ans the SH frames.
The links are exatly the same for each frame, so when i click on a link on the Left frame, i need to go to the right "chapter" in both SQ and SH frames.

How can i do that?
0
Comment
Question by:fcp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Expert Comment

by:TGHI
ID: 8173458

   Check this out:
            http://javascript.internet.com/navigation/change-2-frames-source.html

   Hopefully that helps.



       Tghi.n3.net
0
 
LVL 17

Accepted Solution

by:
dorward earned 375 total points
ID: 8173545
0
 

Expert Comment

by:zamwik
ID: 8174964
Yeah, dorwards, right, that's the best way I've ever found, where you would have your normal <a href="url.htm">link</a>
use this instead

<a href="SQ_url.htm" target="SQ" onClick="top.SH.location='SH_url.htm';">link</a>

and that's it. Simple and effetive. In a word, Nice.

The only drawbacka, are that the user has to have a JavaScript enabled browser (not that unlikely) and the other is that when the user presses their browser's "back" button, they have to press it twice to get back to where they were when they clicked the link, but hey, I can live with that. The question is, can you...?
0
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 

Author Comment

by:fcp
ID: 8245849
Well, sorry for the delay on my feedback.
The Javascript is right, but zamwik focus on a drawback: the back button. To avoid this "double-back" thing, is it possible to make each frame "synchronize" the other?
I mean: when i click "Back" on the SQ frame, there's a way to put the SH frame at the same # point? This have to appens also when you press BACK also on the SH frame,
but the difficult i have with is that this starts a infinite "SH->SQ" "SQ->SH" updating. How to avoid this?


0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 8820571
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

<note>
Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0
 

Author Comment

by:fcp
ID: 8822317
I was waiting for a better answer. Technically dorward's answer is the best, the B grade is for the drawbacks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question