Redirect to New Window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Evans

    Redirect to New Window

    I'm using a meta-refresh construct to redirect a URL:

    <meta http-equiv="REFRESH" content="0;url= http://path/to/new/url">

    I would like to be able to make this open in a new window, rather than
    in the current window. Suggestions? Thanks.
  • Lachlan Hunt

    #2
    Re: Redirect to New Window

    Tim Evans wrote:
    [color=blue]
    > I'm using a meta-refresh construct to redirect a URL:
    >
    > <meta http-equiv="REFRESH" content="0;url= http://path/to/new/url">
    >
    > I would like to be able to make this open in a new window, rather than
    > in the current window. Suggestions? Thanks.[/color]

    Yes, DON'T!!! Let the user decide when they want to refresh the page,
    and when they want to open a new window. You do not control the user's
    application, they do. Infact, once the user is viewing your page, they
    are in control of that too!

    If you're using that as a redirect, as it appears to be, then I suggest
    you look into using a .htaccess file to configure your server to do real
    redirects. Using meta for redirects is wrong.

    You should configure your server to send an HTTP 3xx response, depending
    on the reason for the redirect. Take a look at RFC 2616 [1] to
    determine which is the most appropriate redirect status code for your
    needs, and then configure your .htaccess file appropriately [2]. If
    you're server is not using apache, ask in an appropriate newsgroup for
    whatever it is. For futher information about this, ask in a general web
    server, or an apache newsgroup.

    [1] http://www.rfc-editor.org/rfc/rfc2616.txt
    [2] http://httpd.apache.org/docs-2.0/mod....html#redirect

    --
    Lachlan Hunt


    Please spam.my.gspot@g mail.com
    Thank you.

    Comment

    • Jan Roland Eriksson

      #3
      Re: Redirect to New Window

      On 13 Sep 2004 06:56:49 -0700, tkevans@tkevans .com (Tim Evans) wrote:
      [color=blue]
      >I'm using a meta-refresh construct to redirect a URL:
      >
      ><meta http-equiv="REFRESH" content="0;url= http://path/to/new/url">[/color]
      - - - - - - - - - - - - - - - - - - -^- don't do that!

      It's extremely annoying to try to use the browser "back" function to get
      back past that zero timed meta hack. I would leave a site that makes use
      of it, and never come back.

      --
      Rex


      Comment

      • Harlan Messinger

        #4
        Re: Redirect to New Window


        "Tim Evans" <tkevans@tkevan s.com> wrote in message
        news:119e154f.0 409130556.3636d 87d@posting.goo gle.com...[color=blue]
        > I'm using a meta-refresh construct to redirect a URL:
        >
        > <meta http-equiv="REFRESH" content="0;url= http://path/to/new/url">
        >
        > I would like to be able to make this open in a new window, rather than
        > in the current window. Suggestions? Thanks.[/color]

        Since the command is called "refresh", why would you expect it to be able to
        open a new window instead of refreshing the current one?

        Why would you want to annoy your users by opening a page in a different
        browser window from the one in which they chose to view your page?

        Comment

        • Stan Brown

          #5
          Re: Redirect to New Window

          "Tim Evans" <tkevans@tkevan s.com> wrote in
          comp.infosystem s.www.authoring.html:[color=blue]
          >I'm using a meta-refresh construct to redirect a URL:
          >
          ><meta http-equiv="REFRESH" content="0;url= http://path/to/new/url">
          >
          >I would like to be able to make this open in a new window, rather than
          >in the current window. Suggestions? Thanks.[/color]

          Don't do a refresh at all; it breaks the browser's BACK button and
          your site also may not be indexed by search engines. Have your
          server do the redirect in a proper way.

          And don't open a new window: contrary to what many dee-zigh-ners
          think, the visitor's desktop does not belong to you.

          To quote Sir Humphrey, "If you're going to do this damn silly thing,
          don't do it in this damn silly way."

          --
          Stan Brown, Oak Road Systems, Tompkins County, New York, USA

          HTML 4.01 spec: http://www.w3.org/TR/html401/
          validator: http://validator.w3.org/
          CSS 2.1 spec: http://www.w3.org/TR/CSS21/
          validator: http://jigsaw.w3.org/css-validator/

          Comment

          • Tim Evans

            #6
            Re: Redirect to New Window

            Stan Brown <the_stan_brown @fastmail.fm> wrote in message news:<MPG.1bb0d 31b27d5850f98c9 a4@news.odyssey .net>...
            [color=blue]
            > Don't do a refresh at all; it breaks the browser's BACK button and
            > your site also may not be indexed by search engines. Have your
            > server do the redirect in a proper way.
            >
            > And don't open a new window: contrary to what many dee-zigh-ners
            > think, the visitor's desktop does not belong to you.[/color]

            USENET is so grand because people offer such supportive, unsolicited
            advice--and always without thinking.

            I do have a valid reason for wanting a new window to be popped. It's
            an on-line app--over which I have no control--and the refresh, or Web
            server redirect, has the effect of exiting the user from the app, with
            data loss. Opening the new page in a new window will resolve this
            issue until the underlying application is fixed.

            Comment

            • Jan Roland Eriksson

              #7
              Re: Redirect to New Window

              On 15 Sep 2004 13:49:05 -0700, tkevans@tkevans .com (Tim Evans) wrote:
              [color=blue]
              >Stan Brown <the_stan_brown @fastmail.fm> wrote in message news:<MPG.1bb0d 31b27d5850f98c9 a4@news.odyssey .net>...[color=green]
              >> Don't do a refresh at all; it breaks the browser's BACK button...[/color][/color]
              [...][color=blue]
              >USENET is so grand because people offer such supportive, unsolicited
              >advice--and always without thinking...[/color]

              No; it was you that did not think before posting...
              [color=blue]
              >... It's an on-line app - over which I have no control - and the
              >refresh, or Web server redirect, has the effect of exiting the
              >user from the app...[/color]

              I think most of us here realized very early that you thought of HTML as
              a command language to be used at your will.

              It's not so here; at best we discuss how to provide info to be used by
              clients that we do know zilch about from the start.

              You got a slew of answers along that line, most of them correct in a www
              sence. So please go "piss up" on another tree will you?

              Bill G. has been spamming usenet with newgroup controls up to a point
              where traditional Big-8 usenet has become a clear minority.

              Your "answers" may be possible to find at Bill G's place, just go there
              and forget about us here will you?

              --
              Rex


              Comment

              • Stan Brown

                #8
                Re: Redirect to New Window

                "Tim Evans" <tkevans@tkevan s.com> wrote in
                comp.infosystem s.www.authoring.html:[color=blue]
                >Stan Brown <the_stan_brown @fastmail.fm> wrote in message news:<MPG.1bb0d 31b27d5850f98c9 a4@news.odyssey .net>...
                >[color=green]
                >> Don't do a refresh at all; it breaks the browser's BACK button and
                >> your site also may not be indexed by search engines. Have your
                >> server do the redirect in a proper way.
                >>
                >> And don't open a new window: contrary to what many dee-zigh-ners
                >> think, the visitor's desktop does not belong to you.[/color]
                >
                >USENET is so grand because people offer such supportive, unsolicited
                >advice--and always without thinking.[/color]

                Unsolicited? Methinks you confuse "unsolicite d" with advice that did
                not meet your preconceptions.

                If you don't want advice, don't ask for advice.

                --
                Stan Brown, Oak Road Systems, Tompkins County, New York, USA

                HTML 4.01 spec: http://www.w3.org/TR/html401/
                validator: http://validator.w3.org/
                CSS 2.1 spec: http://www.w3.org/TR/CSS21/
                validator: http://jigsaw.w3.org/css-validator/

                Comment

                Working...