User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 375,207 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,314 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2003 | Replies: 2
Reply
Join Date: Aug 2004
Posts: 18
Reputation: jdmml is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
jdmml jdmml is offline Offline
Newbie Poster

Loading a specific fram

  #1  
Dec 11th, 2004
I have a webpage that i would like to add a link on it that links to a page with two different frames. However, depending on what the value of the link is, I would like to open a different page in one of the frames. If anyone could explain or help me with how I could do this, it would be greatly appreciated.
If I did not make myself clear, just post and I will try to clarify.
Your online gaming directory! Free Online Games
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Loading a specific fram

  #2  
Dec 12th, 2004
Is the frameset one of your pages? In other words you have a layout like:

MAIN              FRAMESET
--------          --------
       |          |   f1 |
link --------->   |------|
       |          |   f2 | 
--------          --------

And you want f2 to be different based on a value you attach to the link/querystring?

If that's correct, let me know, and I'll show you how to do that.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Loading a specific fram

  #3  
Dec 12th, 2004
I have a cross-browser (FireFox and IE) sample of this code working at:

http://www.tgreer.com/daniweb/main.html

You do have to use a little JavaScript and a bit of misdirection. If this example does what you want, let me know and I'll provide an explanation of what is happening.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 2:50 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC