Solved

Updating 2 frames in one go

Posted on 1998-12-29
7
173 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
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!

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send form to asp server side 6 27
Any Way to rotate banner ads from Commission Junction? 2 37
Session on Html 8 42
Display Flex does not Wrap Items 2 10
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.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

726 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