Header(Location) query

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephen Preston

    Header(Location) query

    I have a split frame which holds in the upper part a php file with a header
    location function, which opens a new file (lower.php). I'm trying to get
    the header function to open lower.php in the lower half of the frame,

    header("Locatio n: lower.php TARGET='lowfram e')

    with out the Target setting, it opens lower.php in the upper part (ie it
    replaces its self), but with the TARGET statement it can't find the file.

    Is this do able? or is the fact that the TARGET= is HTML which messes the
    header up.

    regards
    Stephen



  • DXTrim

    #2
    Re: Header(Location ) query

    The header function only takes an absolute URL (so no target). Try using
    Javascript instead.

    Greetz,

    DXTrim

    "Stephen Preston" <stephen_presto n@btconnect.com > wrote in message
    news:dcle8p$gug $1@nwrdmz02.dmz .ncs.ea.ibs-infra.bt.com...[color=blue]
    > I have a split frame which holds in the upper part a php file with a[/color]
    header[color=blue]
    > location function, which opens a new file (lower.php). I'm trying to get
    > the header function to open lower.php in the lower half of the frame,
    >
    > header("Locatio n: lower.php TARGET='lowfram e')
    >
    > with out the Target setting, it opens lower.php in the upper part (ie it
    > replaces its self), but with the TARGET statement it can't find the file.
    >
    > Is this do able? or is the fact that the TARGET= is HTML which messes the
    > header up.
    >
    > regards
    > Stephen
    >
    >
    >[/color]


    Comment

    • Andy Hassall

      #3
      Re: Header(Location ) query

      On Mon, 1 Aug 2005 15:14:33 +0000 (UTC), "Stephen Preston"
      <stephen_presto n@btconnect.com > wrote:
      [color=blue]
      >I have a split frame which holds in the upper part a php file with a header
      >location function, which opens a new file (lower.php). I'm trying to get
      >the header function to open lower.php in the lower half of the frame,
      >
      >header("Locati on: lower.php TARGET='lowfram e')
      >
      >with out the Target setting, it opens lower.php in the upper part (ie it
      >replaces its self), but with the TARGET statement it can't find the file.
      >
      >Is this do able?[/color]

      No, not with HTTP headers.
      [color=blue]
      >or is the fact that the TARGET= is HTML which messes the header up.[/color]

      Yes.

      Javascript would appear to be the solution.

      --
      Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
      <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

      Comment

      Working...