?
Solved

frames question

Posted on 1998-07-27
2
Medium Priority
?
132 Views
Last Modified: 2010-04-09
when I click on a link in my document I want to load 1 document in 1 frame and another into another frame.  ie

<A HREF="doc1.html" target="left"><a href="doc2.html target="top_rt">go here</a>

this code loads doc2 and ignores doc 1.  So how can I load doc1 in left and doc2 in top_rt  at same time when I click "go here"????

TIA
0
Comment
Question by:csindorf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 140 total points
ID: 1844922
Use some javascript...
<SCRIPT LANGUAGE="JavaScript">
funtion LoadPages {
frame_name1.location = "page1.htm"
frame_name2.location = "page2.htm"
}
</SCRIPT>

then in the <A HREF> use <A HREF ="javascript:LoadPages">Load Two pages...</A>

This should do it for you..

- Matt
0
 

Author Comment

by:csindorf
ID: 1844923
The code below is on a doc called links.html  when I click on Links to run the javascript it just puts the code on the screen not the 2 documents in each of their own frames.

other info:
The frame doc is index.html
frame names are left, top_rt, bottom_rt
the doc to be loaded into left is master.html
the doc to be loaded into top_rt is master2.html

<script language="JavaScript1.1">
function loadPages()
{
      left.location="master.html";
      top_rt.location="master1.html";
}

</script>
<html>

<head>

<title>links</title>
</head>

<body bgcolor="white" text="black" link="blue" vlink="red">

<center><font size="6"><b>Links to go to</b></font></center><br>

<center><img src="Elegant_Double.gif" width="536" height="5"></center>

<table align="center" cellspacing="0" cellpadding="0">
<tr>
    <td></td>
</tr>
</table>

<br>
<table align="center" cellspacing="0" cellpadding="0">
<tr>
    <td><center><font size="4"><strong>Information</strong></font></center>
<A HREF="javascript:loadPages" >Links</a><br><br>
      </td>
</tr>
</table>
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

762 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