Roy A. said the following on 1/8/2007 7:49 AM:
Quote:
FAQ server skrev:
Quote:
>-----------------------------------------------------------------------
>FAQ Topic - How do I change the text in the url/location bar?
>-----------------------------------------------------------------------
>>
>This text can only be altered by changing the URL of the page.
>The normal solution is to use frames, though this can introduce
>problems of its own.
>
I don't think you can do that without a round-trip to the server.
Actually, you can. An anchor within a page will change the text in the
url/location bar but it won't make a round-trip to the server. The FAQ
itself uses anchors :)
Quote:
The normal solution is to use url rewrite or custom error pages. With
frames, the frameset page would have to be a real url with a frameset
document.
That is not entirely true. If the custom error page uses url rewrite to
point to the true frameset page...
Quote:
With custom error pages you could use JavaScript to submit a form with
a real location to a non existing url on the domain. Then, on the
server, you could use JavaScript to include the real page.
I think (and not totally positive) that what got that question into the
FAQ to begin with was people asking how to hide the true URL of the
page. With the advent and popularity of the XMLHttpRequest Object you
don't see that question asked very often anymore.
In either event, the question has become mostly moot but the answer in
the FAQ doesn't begin to cover the possibilities of leaving the URL
intact while changing the page.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/