Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Member Message

dazza
Joined: Sep 28, 2000
# Posts: 23

View the profile for dazza Send dazza a private message

Posted: 04/03/2001 11:17 pm
Edit Message Delete Message Reply to this message

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!!!smile



xelA
Joined: Nov 24, 1999
# Posts: 1857

View the profile for xelA Send xelA a private message

Posted: 04/04/2001 08:06 am
Edit Message Delete Message Reply to this message

I'm not quite sure what u mean. Can I see an example?



joshny
Joined: Jul 23, 1999
# Posts: 509

View the profile for joshny Send joshny a private message

Posted: 04/04/2001 11:39 am
Edit Message Delete Message Reply to this message

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

View the profile for dazza Send dazza a private message

Posted: 04/05/2001 11:56 pm
Edit Message Delete Message Reply to this message

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

View the profile for matti Send matti a private message

Posted: 04/06/2001 02:07 am
Edit Message Delete Message Reply to this message

http://www.jojoxx.net/faq/jscript.html#loadtwo



jnestor
Joined: Nov 05, 1999
# Posts: 655

View the profile for jnestor Send jnestor a private message

Posted: 04/06/2001 10:01 pm
Edit Message Delete Message Reply to this message

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:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. 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

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions