Mailing List Archive

RES: Keeping the address in the address field of the browser
This can be done with JS(JavaScript). I think it's the window.status object.


-----Mensagem original-----
De: Alex Blundell (aj) [mailto:alexblundell@btinternet.com]
Enviada em: terça-feira, 12 de fevereiro de 2002 06:33
Para: users@httpd.apache.org
Assunto: Re: Keeping the address in the address field of the browser


You could allways use a frame so that whenever you click a link the address
in the adress bar doesnt change.. But i dont kow why you would want to.

----- Original Message -----
From: "Owen Boyle" <obo@bourse.ch>
To: <users@httpd.apache.org>
Sent: Tuesday, February 12, 2002 9:16 AM
Subject: Re: Keeping the address in the address field of the browser


> Jacob Vennervald Madsen wrote:
> >
> > Hi List
> >
> > How can I configure my Apache server so that the address in the address
> > field of the browser doesn't change when a link is clicked?
> >
> > For example if I enter www.mydomain.com in my browser it will take me to
> > that site.
> > But normaly if I click a link pointing to
> > www.mydomain.com/pages/newpage.html the browser will write this in the
> > address field.
> > How do I configure Apache so I keep www.mydomain.com in the address
> > field?
>
> This is client-side behaviour and has nothing to do with apache. This is
> also the daftest request I have ever seen on this mailing list (and that
> is saying something). Whatever would you want to do that for?
>
> If you really like doing complicated work for pointless personal
> aesthetics you could run your whole site from a global CGI script at the
> top then all your links would be back to this CGI program with the page
> definition hidden in a POST request. Don't dare ask for more details...
>
> Rgds,
>
> Owen Boyle.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: RES: Keeping the address in the address field of the browser [ In reply to ]
> This can be done with JS(JavaScript). I think it's the window.status object.
> ...
> You could allways use a frame so that whenever you click a link the address
> ...

Frames, JavaScript, whatever - the point is that the questionner is
trying to control client-sided behaviour from the server. It is up to
the browser whether it wants to display the URL it just fetched.

If your customer's browser has JS switched off and if he displays the
frame in a separate window he will defeat your ingenuity and see the
proper URL. The whole idea of hiding the URL is daft - if you suceeded,
you'd make it impossible to bookmark or to send a link to someone or
even to guess if the content is interesting for you from the URL. This
is not how the web was intended to work.

The URL is a useful piece of information and you do your customer's a
disservice by trying to prevent them from viewing it. The idea that is
"looks nicer" is just personal opinion - what if your customers
disagree? I certainly would...

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org