Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
dazza
Joined: Sep 28, 2000
# Posts: 23
|
Posted: 04/03/2001 11:17 pm
How can i link to a frameset and at the same time change the frame source for one of the frames within the frameset. I.e. i want a link to myframeset1.html that contains two frames called header and body. But at the same time i want to specify that the body frame should load mypage2.html instead of the default mypage1.html. Is this clear!!!
|
 |
xelA
Joined: Nov 24, 1999
# Posts: 1857
|
Posted: 04/04/2001 08:06 am
I'm not quite sure what u mean. Can I see an example?
|
 |
joshny
Joined: Jul 23, 1999
# Posts: 509
|
Posted: 04/04/2001 11:39 am
You can load a frameset into a frame. There should be no problems if the frameset you want to load in the frame is correctly targeted. Don't forget that frame names are usually case-sensitive. Basically you need to create two framesets, the second frameset which contains two frames header and body. The frameset will have a be something.html and you will just have a link for something.html that loads into a frame.
|
 |
dazza
Joined: Sep 28, 2000
# Posts: 23
|
Posted: 04/05/2001 11:56 pm
Ok let me try again:I have one frameset page called frameset1.html which contains 2 frames called header & body, with content banner.html & content.html. Then i have a second frameset page called frameset2.html which contains 2 frames called left & main, with content nav.html & press.html. I want to add a link to the content.html page that achieves two things: 1. loads the frameset2.html into the frameset1.html body frame. 2. changes the main frame content from press.html to apress.html. I've tried the following approach so far: I added the onclick='return goGetPress("apress.html")' event to the link in content.html, which calls the following javascript function in the same page: // loads the press frameset with main frame <pr> function goGetPress(pr) { window.body.location.href = "frameset2.html"; top.body.main.location.href = pr; } However i always get the same script error - window.body.location is not an object. Hope this makes it a bit more understandable, although still complicated:-s
|
 |
matti
Joined: Mar 23, 2001
# Posts: 55
|
Posted: 04/06/2001 02:07 am
http://www.jojoxx.net/faq/jscript.html#loadtwo
|
 |
jnestor
Joined: Nov 05, 1999
# Posts: 655
|
Posted: 04/06/2001 10:01 pm
interestingly enough dazza may actually understand that link.But I don't think that's really what you want. I think you're going to need to dynamically generate that frameset2 page. I'd make it a cgi and pass the url of the body "press.html" or "apress.html" as a parameter.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|