473,507 Members | 8,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OT?: framesets, redirects, and URL address

Hey folks,

I have my entire ASP-driven site in a one-frame frameset to preserve a
static URL in a browser's address bar. I also have a customized 404 page to
redirect a visitor to the top, default frameset. The redirect works, but the
called, nonexistent URL remains in the browser's address bar. Is there any
way to refresh a browser's address in the address bar to that of the site's
default, frameset address? I tried using a window.location-type javascript,
but the redirects get stuck in a perpetual loop.

Thanks for any advice,

Dave
Jul 22 '05 #1
10 2092
David Shorthouse wrote:
I have my entire ASP-driven site in a one-frame frameset to
preserve a static URL in a browser's address bar. I also have a
customized 404 page to redirect a visitor to the top, default
frameset. The redirect works, but the called, nonexistent URL remains
in the browser's address bar. Is there any way to refresh a browser's
address in the address bar to that of the site's default, frameset
address?


Why does it matter?
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #2
David Shorthouse wrote:
I have my entire ASP-driven site in a one-frame frameset to
preserve a static URL in a browser's address bar. I also have a
customized 404 page to redirect a visitor to the top, default
frameset. The redirect works, but the called, nonexistent URL remains
in the browser's address bar. Is there any way to refresh a browser's
address in the address bar to that of the site's default, frameset
address?


Why does it matter?


Well, because if someone were to have visited the site via a non-existent
URL, been given my customized 404 page with a redirect to the default site,
the address in their address bar would still read that of the non-existent
URL.

Dave
Jul 22 '05 #3
David Shorthouse wrote:
Why does it matter?


Well, because if someone were to have visited the site via a
non-existent URL, been given my customized 404 page with a redirect
to the default site, the address in their address bar would still
read that of the non-existent URL.


Again, why does that matter? Who CARES what is in the address bar?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #4
>>> Why does it matter?

Well, because if someone were to have visited the site via a
non-existent URL, been given my customized 404 page with a redirect
to the default site, the address in their address bar would still
read that of the non-existent URL.


Again, why does that matter? Who CARES what is in the address bar?


Humpff....okay. If someone were to then bookmark the address, they'll be
bookmarking the dead URL instead of the correct, default address. On every
return to the site from their bookmark, they'll always first see the 404
page then be redirected. All I want to do is avoid this and ensure that
visitors (if they choose to bookmark after having typed a nonexistent URL in
the address bar) have the correct URL in their bookmark listing.

Dave
Jul 22 '05 #5
Gazing into my crystal ball I observed "David Shorthouse"
<da*************@shawyourclothes.ca> writing in
news:ec**************@TK2MSFTNGP11.phx.gbl:
Why does it matter?

Well, because if someone were to have visited the site via a
non-existent URL, been given my customized 404 page with a redirect
to the default site, the address in their address bar would still
read that of the non-existent URL.


Again, why does that matter? Who CARES what is in the address bar?


Humpff....okay. If someone were to then bookmark the address, they'll
be bookmarking the dead URL instead of the correct, default address. On
every return to the site from their bookmark, they'll always first see
the 404 page then be redirected. All I want to do is avoid this and
ensure that visitors (if they choose to bookmark after having typed a
nonexistent URL in the address bar) have the correct URL in their
bookmark listing.


That's one of the problems with using frames, and why most developers stay
away from them. Google for Frames Are Evil.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #6
That's one of the problems with using frames, and why most developers stay
away from them. Google for Frames Are Evil.


True, but I make use of www.dyndns.org because I haven't got a static IP on
which I am hosting my site. DynDNS has an option to mask an URL by using
framesets and, should I ever get my own Domain, it would be a snap just to
change the daughter address. In the meantime, I'm just wondering if it is
possible to do what I am asking. I do have an include file on my pages that
pop a visitor back into the frame should they ever visit the daughter pages
after having done a Google search, so that aspect of things is (relatively)
taken care of.

Dave
Jul 22 '05 #7
Gazing into my crystal ball I observed "David Shorthouse"
<da*************@shawyourclothes.ca> writing in
news:OE**************@tk2msftngp13.phx.gbl:
Hey folks,

I have my entire ASP-driven site in a one-frame frameset to
preserve a
static URL in a browser's address bar. I also have a customized 404
page to redirect a visitor to the top, default frameset. The redirect
works, but the called, nonexistent URL remains in the browser's address
bar. Is there any way to refresh a browser's address in the address bar
to that of the site's default, frameset address? I tried using a
window.location-type javascript, but the redirects get stuck in a
perpetual loop.

Thanks for any advice,

Dave


First, as you are I am sure aware, this is not a client side group.

Second, why are you using frames in the first place? Frames have many
problems, bookmarking, orphan pages in search engines (especially if
javascript is unavailable on the client), search engines, etc.

If you are trying to preserve the static URL in the user's address bar, is
this to keep the person from seeing querystrings and the like? Trust me,
those who want to get to the real page can, easily. View source will give
them the real URL, they can turn off javascript and happily surf around
with all the information you want to hide.

Use other methods, post, session variables, or use check sum or MD5 to
check for invalid values.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #8
Adrienne,

I'm well aware of the downsides to framesets. See my earlier post for my
reasons. This is also why I have OT in the subject of my original
post....this is a pretty active group, I have received some good advice for
other matters, so I thought someone would be kind enough to point me in the
right direction.

Dave
First, as you are I am sure aware, this is not a client side group.

Second, why are you using frames in the first place? Frames have many
problems, bookmarking, orphan pages in search engines (especially if
javascript is unavailable on the client), search engines, etc.

If you are trying to preserve the static URL in the user's address bar, is
this to keep the person from seeing querystrings and the like? Trust me,
those who want to get to the real page can, easily. View source will give
them the real URL, they can turn off javascript and happily surf around
with all the information you want to hide.

Use other methods, post, session variables, or use check sum or MD5 to
check for invalid values.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #9
David Shorthouse wrote on 01 feb 2005 in
microsoft.public.inetserver.asp.general:
I'm well aware of the downsides to framesets. See my earlier post for
my reasons. This is also why I have OT in the subject of my original
post....
Off topic is NOT done for new questions that are outside the scope of a NG,
especially since there are many NGs in which such questions are on topic.
this is a pretty active group, I have received some good
advice for other matters, so I thought someone would be kind enough to
point me in the right direction.


Please be kind enough not to disrupt the topicity of such NG and thereby
degrade it's usefullness and so it's praised [by you] activeness.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #10
David Shorthouse wrote:
Humpff....okay. If someone were to then bookmark the address, they'll
be bookmarking the dead URL instead of the correct, default address.
On every return to the site from their bookmark, they'll always first
see the 404 page then be redirected.
Now we're getting somewhere. If that's your desire, then *TELL* the user he
has followed a dead link, provide a new link, and DO NOT redirect him.
All I want to do is avoid this and ensure that visitors (if they
choose to bookmark after having typed a nonexistent URL in the
address bar) have the correct URL in their bookmark listing.


In the above scenario, the user has *already* navigated to your site via a
dead link. Failing to tell him so will ensure he does it again.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #11

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

Similar topics

14
33740
by: x | last post by:
Greetings everyone: I am trying to get CSS to work with a framed web page, but I cannot. Does anyone know the syntax required in a CSS specification to specify attributes of the frames? ...
5
1635
by: Martin Franklin | last post by:
I have a simple 2 page frameset that I am trying to protect using asp. I've included the following code listed below at the top of each page including the frameset page in an attempt to protect...
1
366
by: Daniel | last post by:
how to detect who redirects traffic to a aspx page? is this info passed along in request object or can sites anonymously redirect traffic to other sites?
5
2261
by: terry | last post by:
Hi, Question: When using Framesets and Server.Transfer in the Application_Error event handler is there a mechanism to get the error page to display in the total view of the browser not just in...
2
2872
by: Andy Fish | last post by:
Hi, I have a problem using forms based authentication with a frameset. I made sure the containing frameset is an aspx so the first time the user tries to access the application he just gets...
5
1624
by: Advo | last post by:
Hey there. Is there any reason why redirects in my code would cause the error: "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are...
4
1762
by: lashnjo | last post by:
hello, is it possible to click on one frameset, (ex. an image) and then for it to load a new frame in two different framesets and a new one in itself
1
9014
by: Mark Rae | last post by:
Hi, Firstly, I have not the slightest intention of using framesets - the reason for this post is merely to ask for assistance in furthering my understanding of XHTML. I was under the...
8
12628
by: geekifyer | last post by:
So I was wondering, what possible replacements are there for the frameset? Because I just want to have my menu and article column be static and not have to be reloaded again, all I really want to be...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7110
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
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
5623
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,...
0
4702
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
3191
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
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.