Click here to get back home

Problems with iframe tag

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems with iframe tag Dan Johnson 09-14-2004
Get Chitika Premium
Posted by Dan Johnson on September 14, 2004, 6:24 pm
Please log in for more thread options
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("Location: $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!



Posted by Neal on September 14, 2004, 5:27 pm
Please log in for more thread options
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?


Posted by Pierre Goiffon on September 15, 2004, 12:02 pm
Please log in for more thread options
> 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/frames.html#adef-target



Posted by Dan Johnson on September 15, 2004, 9:07 pm
Please log in for more thread options

--------------080805070204020308010502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Pierre Goiffon wrote:

>
>
>>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/frames.html#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



--------------080805070204020308010502
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Pierre Goiffon wrote:<br>
<pre wrap="">"Dan Johnson" <a class="moz-txt-link-rfc2396E"
&eacute;crit dans le message de
<a class="moz-txt-link-freetext"
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
You should use the target attribute in the link. For exemple :

&lt;a href="..." target="_blank"&gt;

Please see :
<a class="moz-txt-link-freetext"
href="http://www.w3.org/TR/html401/present/frames.html#adef-target">http://www.w3.org/TR/html401/present/frames.html#adef-target</a>

</pre>
</blockquote>
Thanks, both&nbsp; Pierre, and Neal, for the suggestions. Due to time restraints
a, quick, javascript fix was employed. The iframe tag, in question, &nbsp;had
the following javascript inserted just before the iframe tag. <br>
<br>
if (top.location != self.location)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top.location = self.location<br>
}<br>
<br>
The opening and closing script tags are not included above.<br>
<br>
Hopefully this issue can be revisited; to try out your suggestions; at a
later date.<br>
<br>
Regards,<br>
<br>
Dan<br>
<br>
<br>
</body>
</html>

--------------080805070204020308010502--



Similar ThreadsPosted
problems with iframe rendering November 24, 2004, 3:42 pm
Can IFRAME generate problems? October 12, 2007, 9:32 am
Iframe February 17, 2008, 11:27 pm
like behavior for