Solved

Updating 2 frames in one go

Posted on 1998-12-29
7
171 Views
Last Modified: 2010-04-09
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
Comment
Question by:freak022398
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 1

Expert Comment

by:artlantis
ID: 1841067
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
 

Author Comment

by:freak022398
ID: 1841068
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
 
LVL 4

Expert Comment

by:martinag
ID: 1841069
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:faraj
ID: 1841070
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
 
LVL 1

Expert Comment

by:artlantis
ID: 1841071
Hi,
I would do it like Martinag way.(No java.Simple html)

Happy new year to all of you.
Andreas


0
 

Author Comment

by:freak022398
ID: 1841072
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
 
LVL 4

Accepted Solution

by:
martinag earned 100 total points
ID: 1841073
Ok.

Happy New Year, Martin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now