PHP header - how to I use _top? Help!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adams-Blake Co.

    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

  • Peter Jones

    #2
    Re: PHP header - how to I use _top? Help!

    "Adams-Blake Co." <atakeoutcanton @adams.takeme.o ut.-blake.com> wrote in
    news:vPL1b.437$ 3E.151@newsread 3.news.pas.eart hlink.net:
    [color=blue]
    > 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![/color]

    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.

    Comment

    • Peter Jones

      #3
      Re: PHP header - how to I use _top? Help!

      Peter Jones <jonespr@optush ome.com.au> wrote in
      news:Xns93E1124 38554Cprjpp1516 202119@210.49.2 0.254:
      [color=blue]
      > <a href="errorpage .html" "target="_top"> Error Page</a>[/color]

      Whoops: too many inverted commas...

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

      Pete.

      Comment

      • powerboy

        #4
        Re: PHP header - how to I use _top? Help!

        "Adams-Blake Co." <atakeoutcanton @adams.takeme.o ut.-blake.com> wrote in message
        news:vPL1b.437$ 3E.151@newsread 3.news.pas.eart hlink.net...[color=blue]
        > 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![/color]

        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">


        Comment

        • Adams-Blake Co.

          #5
          Re: PHP header - how to I use _top? Help!

          powerboy wrote:
          [color=blue]
          > "Adams-Blake Co." <atakeoutcanton @adams.takeme.o ut.-blake.com> wrote in
          > message news:vPL1b.437$ 3E.151@newsread 3.news.pas.eart hlink.net...[color=green]
          >> 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![/color]
          >
          > 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">[/color]

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

          Al

          Comment

          Working...