473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.
Jul 23 '05 #1
7 16698
Tim Evans wrote:
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.


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
http://www.lachy.id.au/

Please sp***********@gmail.com
Thank you.
Jul 23 '05 #2
On 13 Sep 2004 06:56:49 -0700, tk*****@tkevans.com (Tim Evans) wrote:
I'm using a meta-refresh construct to redirect a URL:

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

- - - - - - - - - - - - - - - - - - -^- 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
Jul 23 '05 #3

"Tim Evans" <tk*****@tkevans.com> wrote in message
news:11**************************@posting.google.c om...
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.


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?

Jul 23 '05 #4
"Tim Evans" <tk*****@tkevans.com> wrote in
comp.infosystems.www.authoring.html:
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.


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
http://OakRoadSystems.com/
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/
Jul 23 '05 #5
Stan Brown <th************@fastmail.fm> wrote in message news:<MP************************@news.odyssey.net> ...
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.


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.
Jul 23 '05 #6
On 15 Sep 2004 13:49:05 -0700, tk*****@tkevans.com (Tim Evans) wrote:
Stan Brown <th************@fastmail.fm> wrote in message news:<MP************************@news.odyssey.net> ...
Don't do a refresh at all; it breaks the browser's BACK button...
[...]USENET is so grand because people offer such supportive, unsolicited
advice--and always without thinking...
No; it was you that did not think before posting...
... 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...


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
Jul 23 '05 #7
"Tim Evans" <tk*****@tkevans.com> wrote in
comp.infosystems.www.authoring.html:
Stan Brown <th************@fastmail.fm> wrote in message news:<MP************************@news.odyssey.net> ...
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.


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


Unsolicited? Methinks you confuse "unsolicited" 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
http://OakRoadSystems.com/
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/
Jul 23 '05 #8

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

Similar topics

3
by: Steven | last post by:
All I want to pop up a window before/during redirect to another page. Sort of a confirmation page: <? .... /* I need to pop up a window here */
1
by: Dwayne | last post by:
I use Respose.Redirect quite a bit but on one of my pages it has an odd behavior. Any time I use it on this page it will come up in a new Window. I didn't even think this was an option and can't...
3
by: eieed | last post by:
I have a web page that is designed to allow users to run crystal reports which are then exported into PDF formats. Currently, when the user clicks the "Submit" button there is some processing to...
5
by: Nazir | last post by:
I am trying to do something pretty simple - but can't see how it can be done in ASP.NET. I have an aspx web page with a form which opens up a new window. The web page uses code behind to build...
3
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here...
8
by: msnews.microsoft.com | last post by:
I want to redirect the user to a url outside of our website but I want it to preserve our application's window by opening a new window. We have a datagrid that has five hyperlink columns containing...
2
by: news://news.microsoft.com/microsoft.public.de.germ | last post by:
Hallo! Ich habe ein Frameset mit 3 Frames. Im 1. Frame wird eine ASPX-Seite geöffnet. In dieser werden einige Steuerelemente angezeigt. Nun soll bei bestimmten Benutzeraktivitäten eine andere...
1
by: rouellette | last post by:
Is it possible to redirect to another page in your application from the start page BEFORE the user has been authenticated if you're using FORMS authentication? I can't seem to get it to work. ...
1
by: sowen | last post by:
In IE, I am using showModalDialog to pop up a modeless window, then the object "opener" is undefined. well, I pass the parent window object as an argument to pop up, then I can redirect the...
1
by: gnawz | last post by:
Hi guys, I have a couple of php files that perform various tasks. I will use fields in my system and provide code as well I need help as follows: My database contains the fields Category...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.