• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

How to "target" two frames at a time?

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
fcp
Asked:
fcp
1 Solution
 
TGHICommented:

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

   Hopefully that helps.



       Tghi.n3.net
0
 
zamwikCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
fcpAuthor Commented:
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
 
COBOLdinosaurCommented:
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
 
fcpAuthor Commented:
I was waiting for a better answer. Technically dorward's answer is the best, the B grade is for the drawbacks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now