Solved

Links and frames

Posted on 2000-03-08
5
231 Views
Last Modified: 2012-05-04
I have a page wich is split in two col. frames 20% and 80% and what i want is when they click a link in the 20% frame it will change or update the 80% frame.
0
Comment
Question by:scooter1
[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
  • 2
5 Comments
 

Accepted Solution

by:
yolish earned 50 total points
ID: 2597466
You need to reference the updated frame with target="frame name"... This will do whatever you want to that frame
0
 

Author Comment

by:scooter1
ID: 2597516
yeah i figured that out, do i need to use java script to make sure it loads correctly?

for example something like:

if(top.location==self.location){
top.location.href="frameset name.html"
}

and what is ment by "frameset name.html"?

0
 

Expert Comment

by:yolish
ID: 2597533
why use javascript?
0
 

Author Comment

by:scooter1
ID: 2597585
will all browsers accept 'target'
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 2597589
scooter1,
the code you pasted above will make sure that the user is viewing the page inside the frame (as opposed to by itself).  "framesetname.html" is presumably the page that contains your <FRAMESET> and <FRAME> tags.  However, I don't see the relationship between this and your question.

You can accomplish your goal with javascript, or as yolish pointed out, with a target attribute.  Here is both ways:

js:
<A href='#' onClick='top.nameOfThe80pctFrame.location="newurl.htm";return(false);'>Click Me!</a>

<A href="newurl.htm" target="nameOfThe80pctFrame">Click Me</a>
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

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. …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

632 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