473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

PHP header - how to I use _top? Help!

I have an application with two frames... the traditional left hand menu strip
and the large right-hand main window. I want to "break out" and display an
error page so that they can't see the left hand menu frame. I want to show
plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of folks
who have asked this question but so far I have not found an answer that
works.

There has got to be a way!

Please?

Thanks,
Al

Jul 16 '05 #1
4 11347
"Adams-Blake Co." <at************@adams.takeme.out.-blake.com> wrote in
news:vP**************@newsread3.news.pas.earthlink .net:
I have an application with two frames... the traditional left hand
menu strip and the large right-hand main window. I want to "break out"
and display an error page so that they can't see the left hand menu
frame. I want to show plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of
folks who have asked this question but so far I have not found an
answer that works.

There has got to be a way!


There is.

<a href="errorpage.html" "target="_top">Error Page</a>

http://wp.netscape.com/eng/mozilla/2...mo/target.html is one
of many pages which covers use of target.

Pete.
Jul 16 '05 #2
Peter Jones <jo*****@optushome.com.au> wrote in
news:Xn*****************************@210.49.20.254 :
<a href="errorpage.html" "target="_top">Error Page</a>


Whoops: too many inverted commas...

<a href="errorpage.html" target="_top">Error Page</a>

Pete.
Jul 16 '05 #3
"Adams-Blake Co." <at************@adams.takeme.out.-blake.com> wrote in message
news:vP**************@newsread3.news.pas.earthlink .net...
I have an application with two frames... the traditional left hand menu strip
and the large right-hand main window. I want to "break out" and display an
error page so that they can't see the left hand menu frame. I want to show
plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of folks
who have asked this question but so far I have not found an answer that
works.

There has got to be a way!


PHP isn't going to give you what you need, but some output from PHP can ;) - by adding the onload to
the body tag of the output framed page:

<body onload="if (self != top) top.location = self.location">
Jul 16 '05 #4
powerboy wrote:
"Adams-Blake Co." <at************@adams.takeme.out.-blake.com> wrote in
message news:vP**************@newsread3.news.pas.earthlink .net...
I have an application with two frames... the traditional left hand menu
strip and the large right-hand main window. I want to "break out" and
display an error page so that they can't see the left hand menu frame. I
want to show
plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of folks
who have asked this question but so far I have not found an answer that
works.

There has got to be a way!


PHP isn't going to give you what you need, but some output from PHP can ;) -
by adding the onload to the body tag of the output framed page:

<body onload="if (self != top) top.location = self.location">


Ah ha! Now I see. The above worked great. Thanks for the help. I really
appreciate it.

Al

Jul 16 '05 #5

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

Similar topics

3
by: Phil Powell | last post by:
header("Location: http://$SERVER_NAME/index.php; Window-target: top""); I am getting a 403 Forbidden upon running this script, which is not what I wanted. Is there a way I can redirect, but at...
2
by: Lamine Darbouche | last post by:
Please help? I have my application with four frames and would like to redirect from one frame to _parent or _top. Can I do that with "Response.redirect" or similar? Many thanks in advance....
8
by: Dave | last post by:
Hello, I have written a website www.pusspaws.net, my problem is in the gallery section. I have coded ... <object type="text/html" data="galleryobj.html" border="0" width="422"...
19
by: Arthur Connor | last post by:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML. How do I change the line to meet the requirements of strict HTML? <A...
4
by: socialism001 | last post by:
I have the following code in my cgi script. How would I use target="_top" in the code below so that it would prevent my page from opening in a frame. Thanks, Chris ********************* my...
5
by: Jim in Arizona | last post by:
I have a site that uses frames. I made an aspx form with an asp:button control with Onclick=test. The test sub is: Sub Test(ByVal sender As Object, ByVal e As System.EventArgs) ...
3
by: DigMar | last post by:
Hello, Thi is a newbie question regarding the spacing of words in a header with links. I simply want to space the clickable words on my header bar more horizontally. Here is my code to make more...
16
by: Thomas Maier-Komor | last post by:
Hi everybody, I have a problem with a certain link pattern that gets resolved wrong in the IE, but works find on Firefox. Maybe somebody has an idea, how to work around it. I have an .html...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.