Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Updating 2 frames in one go

Hi there.

If i have 2 frames, and then click on a link in one of the frames.
Is there any way (without using java) that i can get the browser to read a new page in BOTH frames? (Not the same page in both frames)
A friend of mine says it's possible, but another says it's not!
Who shal i beleave?

Regards. Martin Møller.
0
freak022398
Asked:
freak022398
  • 2
  • 2
  • 2
  • +1
1 Solution
 
artlantisCommented:
Hi,
Happy new year.

If i understand well,when you click one link, to open the page without frames,to a single window.
Am i wrong?
(After your comment i'll answer your question)

Sincerely
Andreas

http://www.intrafood.com/artlantis/index.htm
artlantis@hotbot.com
0
 
freak022398Author Commented:
What i want is when i click a link in a frame, the browser should read 2 different pages into the two different frames.

Martin.

0
 
martinagCommented:
I take it with Java, you mean JavaScript.

You'll have to create one frameset file for every file. Let me explain:
<A HREF="products.htm" TARGET="_parent">Products</A>
<A HREF="introduction.htm" TARGET="_parent">Introduction</A>

products.htm contains like this:
<FRAMESET COLS="200,*">
<FRAME SRC="products_menu.htm" NAME="menu">
<FRAME SRC="products_main.htm" NAME="main">
</FRAMESET>

introduction.htm:
<FRAMESET COLS="200,*">
<FRAME SRC="introduction_menu.htm" NAME="menu">
<FRAME SRC="introduction_main.htm" NAME="main">
</FRAMESET>

Martin
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.

 
farajCommented:
It's very simple :
------------------
this is the simple javascript that do it :
<!--
// SetFrames JavaScript Meir Faraj
// e-mail : faraj@beitza.jct.ac.il

function SetFrames(Frame1,url1,Frame2,url2) {

      parent.frames[Frame1].location.href=url1;
      parent.frames[Frame2].location.href=url2;
}
//-->

If you don't understand how to use this or wanna more info : let me know...
0
 
artlantisCommented:
Hi,
I would do it like Martinag way.(No java.Simple html)

Happy new year to all of you.
Andreas


0
 
freak022398Author Commented:
Sorry for rejecting your answer Faraj, but i wanted a way without using java script!

So Martinag, propose an answer!

Happy newyear all.
Martin.

0
 
martinagCommented:
Ok.

Happy New Year, Martin
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now