473,785 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with iframe tag

Hello all,

I have been playing with the GNU banner exchange package, called banex,
found at http://www.sourceforge.com/projects/banex . An example of it in
action can be found at http://chebucto.ns.ca/~ab496/ .

The problem is that an iframe tag is used to position the banner on the
hosting page. If the banner is clicked then the page which is linked
from the banner then appears in the iframe area instead of a full page.
At first I thought that it was because it was using a META tag to
redirect the user by a 'refresh'; which is non-W3C compliant. That has
been changed. I now have it using :

header("HTTP/1.1 301 Moved Permanently");
header("Locatio n: $where");
exit();

The redirected page is still appearing in the original iframe defined
area, however. Could anyone provide means by which the old iframe
settings can be cleared to display the banner linked page outside the
confines of the defined iframe?

Thanks in advance!

Jul 23 '05 #1
3 5148
On Tue, 14 Sep 2004 17:24:54 -0300, Dan Johnson <bo****@hfx.eas tlink.ca>
wrote:
The problem is that an iframe tag is used to position the banner on the
hosting page.


That's not smart. Why not use an include? SSI or PHP?
Jul 23 '05 #2
"Dan Johnson" <bo****@hfx.eas tlink.ca> a écrit dans le message de
news:41******** ****@hfx.eastli nk.ca
The problem is that an iframe tag is used to position the banner on
the hosting page. If the banner is clicked then the page which is
linked from the banner then appears in the iframe area instead of a
full page.


You should use the target attribute in the link. For exemple :

<a href="..." target="_blank" >

Please see :
http://www.w3.org/TR/html401/present...ml#adef-target

Jul 23 '05 #3
Pierre Goiffon wrote:
"Dan Johnson" <bo****@hfx.eas tlink.ca> a écrit dans le message de
news:41******* *****@hfx.eastl ink.ca

The problem is that an iframe tag is used to position the banner on
the hosting page. If the banner is clicked then the page which is
linked from the banner then appears in the iframe area instead of a
full page.


You should use the target attribute in the link. For exemple :

<a href="..." target="_blank" >

Please see :
http://www.w3.org/TR/html401/present...ml#adef-target

Thanks, both Pierre, and Neal, for the suggestions. Due to time
restraints a, quick, javascript fix was employed. The iframe tag, in
question, had the following javascript inserted just before the iframe
tag.

if (top.location != self.location)
{
top.location = self.location
}

The opening and closing script tags are not included above.

Hopefully this issue can be revisited; to try out your suggestions; at a
later date.

Regards,

Dan

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2100
by: Dan Popa | last post by:
Check out the following 2 links: http://www.batisdev.com/admin/test_1images.asp http://www.batisdev.com/admin/test_2images.asp First page contain 4 IFRAMES and 1 IMG tags. Second page contain 4 IFRAMES and 2 IMGs tags. The problem is that the second IFRAME from the second page generates fires a new session.
1
5962
by: Jeff Thies | last post by:
I'm (still) having trouble reading the contents of an IFRAME (IE5). I have this: var my_iframe = document.frames; What I would want to do at that point is get either the contentWindow.document or the contentDocument depending on whether this was IE or Mozilla. (Thanks Lasse.) I'm not finding this.
12
9802
by: Javier | last post by:
Hello, I'm very new in this forum and as I have the following problem, the website is in http://new.vanara.com ---------------------------------------------------------------------------- -------------------------------------------- Here's how the site works: You should press a button in the rollover area in order to load a source file on an Iframe, this Iframe is actually hidden working as a Buffer. The body of this loaded Iframe is...
0
1880
by: Vince | last post by:
I have a generic page that I use for printing content, and it contains an iframe into which I put the url for the page to be printed. I dynamically size the iframe so that it correctly displays the entire contents of the printed page. There are 2 problems with this: 1) The resulting printout chops off the bottom part of the page, even though it displays the full page in the browser. Even in print preview it still chops off the bottom....
1
5780
by: no spam | last post by:
Hi, I have googled on this but can't find the answer. I am writting a page that will be viewed with Firefox .9 or >, and mainly with IE 6, where I need to update pieces of the page without updating the whole page. I was going to do it with <OBJECT ...> but realized that the support in IE6 is terrible, so decided to do it with <IFRAME...>. My problem is that there is a huge blank space left inside the iframe body, under its content,...
4
7859
by: Richard St?en | last post by:
Hi! We are experiencing a problem with running an .aspx page inside an iframe. The .aspx page is loading perfectly the first time (on load), but when we try to interact/navigate within the .aspx page (press a button/calendar control e.g.) the response is loaded in a new separate browser window. What we want is that the .aspx page is preserved and running inside the IFRAME, not only on load, but also when the user tries to interact
7
3701
by: Patrick.O.Ige | last post by:
Can i use Frameset in ASP.NET?What are other options I have a question :- I have an asp.net page and i'm using TreeView control as links The links are on the left side of the page inside a iframe! I used iframe b-cos the links are too long and they shift the page to the right. Is there a way that if a user clicks a link on the Treeview it can target to the table of the main window on the right (I DOUBT IF ITS POSSIBLE) What other ways are...
9
11189
by: aatcbbtccctc | last post by:
Hi folks I've googled for an answer to this, with no success. Can someone please jump in, and put me out of my misery! (I'm sure it's quite simple) I have an invisible IFRAME, and a visible DIV: <IFRAME id=myframe style="display:none" src="..." onload="ShowNews(this)"></IFRAME>
3
4488
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page includes background music with a javascript music player on the main page below an iframe that is used for all content and navigation of the site and so that the music doesn't reload each time a page is switched. There is another javascript to resize...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8974
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.