Solved

frames question

Posted on 1998-07-27
2
128 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
2 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 70 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Which non-HTML GUI front end to use with Java? 3 24
How has this flight information been added to this website? 7 31
Html value of radio 14 27
CSS Style Effect 2 6
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.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
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).

840 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