Solved

Updating 2 frames in one go

Posted on 1998-12-29
7
170 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 1

Expert Comment

by:faraj
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Ok.

Happy New Year, Martin
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

744 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