header() problem with Window-target

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil Powell

    header() problem with Window-target

    header("Locatio n: 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 the same time redirect out of
    the frame that the redirection script is located to _top? I don't want to
    have to rely on Javascript to do this as this is a foreign site (European)
    where Javascript is often turned off.

    Thanks
    Phil


  • Pedro

    #2
    Re: header() problem with Window-target

    Phil Powell wrote:[color=blue]
    >header("Locati on: 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 the same time redirect out of
    >the frame that the redirection script is located to _top?[/color]

    hehehe, as far as I know: no.

    Why don't you go to http://$SERVER_NAME/index.php with
    a standard HTML link instead of a server redirect?

    <?php
    echo "<a href=\"http://$SERVER_NAME/index.php\"
    target=\"_top\" >index</a>";
    ?>

    hth
    [color=blue]
    >I don't want to
    >have to rely on Javascript to do this as this is a foreign site (European)
    >where Javascript is often turned off.[/color]

    Mine is off, and I'm in Europe, and I get mad when I click a link
    and a new window pops up(*)!!! When I want a new window
    I'll Shift-Click, thank you very much :)

    (*) not really: my proxy changes [target="xxx"] to [notarget]


    --
    "Yes, I'm positive."
    "Are you sure?"
    "Help, somebody has stolen one of my electrons!"
    Two atoms are talking:

    Comment

    • Vedran Krivokuca

      #3
      Re: header() problem with Window-target

      "Phil Powell" <soazine@erols. com> writes:
      [color=blue]
      > header("Locatio n: http://$SERVER_NAME/index.php; Window-target: top"");[/color]
      ^^^^^^^^^^^^^^^ ^^^[color=blue]
      > 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 the same time redirect out of[/color]

      What should underlined (Window-target: top) be? I don't think you can do
      that (pseudo-javascript?) in HTTP headers.
      [color=blue]
      > the frame that the redirection script is located to _top? I don't want to
      > have to rely on Javascript to do this as this is a foreign site (European)
      > where Javascript is often turned off.[/color]

      Just an idea, since it might not fit into your concept of site: use
      target="_top" in link (<a href...>) tag, forms, or whereever it can be
      used. It should break out of frame, load page on top of existing frameset
      (yes, it *can* be another frameset).

      HTH.

      --
      Vedran Krivokuca [mANiaC] :: To contact me, use usenet -at- 3 dot 14 dot net

      Comment

      • Phil Powell

        #4
        Re: header() problem with Window-target

        I had to forget the whole thing and serve up some HTML with a hard-coded
        link with target=_top. Very sloppy solution but the only one there is.

        Phil

        "Vedran Krivokuca" <news@3dot14.ne t> wrote in message
        news:wucouo5v.f sf@foo.tweety.n et...[color=blue]
        > "Phil Powell" <soazine@erols. com> writes:
        >[color=green]
        > > header("Locatio n: http://$SERVER_NAME/index.php; Window-target: top"");[/color]
        > ^^^^^^^^^^^^^^^ ^^^[color=green]
        > > I am getting a 403 Forbidden upon running this script, which is not what[/color][/color]
        I[color=blue][color=green]
        > > wanted. Is there a way I can redirect, but at the same time redirect[/color][/color]
        out of[color=blue]
        >
        > What should underlined (Window-target: top) be? I don't think you can do
        > that (pseudo-javascript?) in HTTP headers.
        >[color=green]
        > > the frame that the redirection script is located to _top? I don't want[/color][/color]
        to[color=blue][color=green]
        > > have to rely on Javascript to do this as this is a foreign site[/color][/color]
        (European)[color=blue][color=green]
        > > where Javascript is often turned off.[/color]
        >
        > Just an idea, since it might not fit into your concept of site: use
        > target="_top" in link (<a href...>) tag, forms, or whereever it can be
        > used. It should break out of frame, load page on top of existing frameset
        > (yes, it *can* be another frameset).
        >
        > HTH.
        >
        > --
        > Vedran Krivokuca [mANiaC] :: To contact me, use usenet -at- 3 dot 14 dot[/color]
        net


        Comment

        Working...