Solved

frames question

Posted on 1998-07-27
2
131 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 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

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!

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

690 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