?
Solved

Links and frames

Posted on 2000-03-08
5
Medium Priority
?
232 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 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

719 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