Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

frames question

Posted on 1998-07-27
2
Medium Priority
?
134 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

609 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