|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I just have a quick question:
A few pages in the website I am working will be split into two frames (header with horizontal menu + bottom frame displaying archived content from a previous version of the website). I need the links in the top frame to control the whole window, not just the frame they are in. For example, a link in the top frame would say "Return to event description" and when clicked, I would like the browser to bring the whole window to that page (without frames), not just load it inside the frame. I guess this cannot be achieved with the "Target" variable...how can I do this? Thanks in advance! |
|
#3
|
|||
|
|||
|
Ahhh...thanks! I thought _top would be a new window...
Why...cuz its just for a couple pages on the site and its simple. What's a better alternative? |
|
#4
|
|||
|
|||
|
Well, what is the reason for using the frameset?
|
|
#5
|
|||
|
|||
|
The site is for an organization that has many events each year; I am making a new website, but I will not need to carry over all the information about past events - so if someone wants to see info on a past event, it will be a page with two frames: my new header/menu on top, and a page from the old website in the main frame below...but I needed the links in the top frame menu to bring the user back to the main new site
|
|
#6
|
|||||
|
|||||
|
Ok, if you are making a new site and want to integrate old pages, is the best method going to be to whack in a nasty, old method frameset or use newer methods to seamlessly incorporate them into the design.
Is this a dynamic site or static? I'll do a quick example in PHP. PHP Code:
This is obviously a more basic example and wont fix the HTML being inserted into your page, but I can help you if you want to try doing something a little more dynamic. Last edited by PHP-Newb : April 26th, 2008 at 06:35 AM. |
|
#7
|
|||
|
|||
|
Thanks! I didn't think about the php include function (i use it for the menu)
I am from a design background and just recently got into web development - this is my second site (testing @ www.iuhei.org/cmf) ... www.iuhei.org was the first one. I will try the php method now... |
|
#8
|
|||
|
|||
|
Actually, the page I need to "inlclude" is a PHP page itself (for example: http://www.cmf.ch/_sCrans/2007/index.php) and it doesn't seem to work...is it still possible to use "include" somehow?
And thanks for helping me with this - I really appreciate it. Let me know if you wouldn't mind using googleTalk or MSN to reply quicker - I will send you my username |
|
#9
|
|||
|
|||
|
What happens when you try to include it?
|
|
#10
|
|||
|
|||
|
Nothing - the div is empty. Also, I don't just need to display a single page, but let the user navigate several related pages (like News, Press Articles, etc. in the above link). So I think frames work fine
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > :: TARGET of links in FRAMES (simple question) :: |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|