Solved

Links and frames

Posted on 2000-03-08
5
230 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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
output in HTML format powershell 6 52
Page link not showing on Mobile Device 3 57
CSS styling problem 3 28
Tell me if I understand this correctly... 6 21
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

710 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