HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 26th, 2008, 04:31 AM
ArtemMC ArtemMC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 8 ArtemMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 37 sec
Reputation Power: 0
Cool :: TARGET of links in FRAMES (simple question) ::

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!

Reply With Quote
  #2  
Old April 26th, 2008, 05:12 AM
PHP-Newb PHP-Newb is offline
Bad Coder
Click here for more information
 
Join Date: Jul 2003
Posts: 1,592 PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 43 m
Reputation Power: 123
target="_top"

Why are you using frames?
__________________
Under no circumstances click the button, because it is pointless. Thanks!

Reply With Quote
  #3  
Old April 26th, 2008, 05:20 AM
ArtemMC ArtemMC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 8 ArtemMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 37 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old April 26th, 2008, 05:20 AM
PHP-Newb PHP-Newb is offline
Bad Coder
Click here for more information
 
Join Date: Jul 2003
Posts: 1,592 PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 43 m
Reputation Power: 123
Well, what is the reason for using the frameset?

Reply With Quote
  #5  
Old April 26th, 2008, 06:06 AM
ArtemMC ArtemMC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 8 ArtemMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 37 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old April 26th, 2008, 06:28 AM
PHP-Newb PHP-Newb is offline
Bad Coder
Click here for more information
 
Join Date: Jul 2003
Posts: 1,592 PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 43 m
Reputation Power: 123
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:
Original - PHP Code
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3.   <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5.     <title></title>
  6.   </head>
  7.   <body>
  8.  
  9.   <div id="topRow"></div>
  10.   <div id="leftCol"></div>
  11.   <div id="content">
  12. <?PHP
  13.   if($_GET['view']) { // Check if a link been clicked with a get variable.
  14.     $page = filter_var($_GET['view'], FILTER_SANITIZE_STRING); // Remove any unusual or malicious code in the link variable.
  15.     if(file_exists('/old_pages/'.$page)) { // Make sure the file exists before using it.
  16.       include('/old_pages/'.$page); // Insert the file into the content div.
  17.     }
  18.     else echo 'This file does not exist.'; // Print this into the content div if the file does not exist.
  19.   }
  20.   else include('default.html'); // If we haven't selected a file to view, use the default page.
  21. ?>
  22.   </div>
  23.   <div id="rightCol"></div>
  24.   <div id="bottomRow"></div>
  25.  
  26.   </body>
  27. </html>
  28.  
So an example link would be <a href="index.php?view=olddocument1.html">Click Me</a>

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.

Reply With Quote
  #7  
Old April 26th, 2008, 06:35 AM
ArtemMC ArtemMC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 8 ArtemMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 37 sec
Reputation Power: 0
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...

Reply With Quote
  #8  
Old April 26th, 2008, 06:52 AM
ArtemMC ArtemMC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 8 ArtemMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 37 sec
Reputation Power: 0
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

Reply With Quote
  #9  
Old April 26th, 2008, 07:21 AM
PHP-Newb PHP-Newb is offline
Bad Coder
Click here for more information
 
Join Date: Jul 2003
Posts: 1,592 PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level)PHP-Newb User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 43 m
Reputation Power: 123
What happens when you try to include it?

Reply With Quote
  #10  
Old April 26th, 2008, 07:50 AM
ArtemMC ArtemMC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 8 ArtemMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 37 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > :: TARGET of links in FRAMES (simple question) ::


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |