Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Links and frames

Posted on 2000-03-08
5
Medium Priority
?
233 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
  • 2
  • 2
5 Comments
 

Accepted Solution

by:
yolish earned 200 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

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

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.
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…
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…
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).

772 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