Hi,
Is there a way I can change what it says in the browsers location bar? I want to use this to hide ugly URL's like http://www.site.com/?var=1&var=2&var=3&var=4.
Any ideas on how to do this?
Ta![]()
| SitePoint Sponsor |
Hi,
Is there a way I can change what it says in the browsers location bar? I want to use this to hide ugly URL's like http://www.site.com/?var=1&var=2&var=3&var=4.
Any ideas on how to do this?
Ta![]()
Try to use post method for sending form.
______________________
With best regards,
Julia Pavlova
Programmer
Rapid Internet Development
AlarIT Inc.
URL: http://www.alarit.com
It's not from using the get method, I have put them there to read with PHP so I can get information to access user profiles in a database.





window.defaultStatus = 'my text';
or
<a href="#" onmouseover="window.defaultStatus='my new text'; return true;">link</a>
Thanks for the reply but maybe I wasn't clear enough. I want to change the address bar so instead of displaying the actualy URL you are at, it shows a simple version without a querystring.





try this...
PHP Code:
<html>
<head>
<title></title>
</head>
<body>
<a href="http://www.sitepointforums.com/newreply.php?s=&action=newreply&threadid=86388" id="a1" onmouseover="window.defaultStatus = document.links[0].hostname; return true;">link</a>
</body>
</html>
That's still changing the Status bar, I'm looking to change the Address bar. Thanks for the ideas though![]()





OH:O, as mentioned previously use post
orPHP Code:<form action="index.php" method="post">
<input type="text" value="abc" />
<input type="submit">
</form>
check this site out http://www.devarticles.com/art/1/143
Forms? Status bar?
If ForceType isn't an option for you...
Url masking.
Not a perfect solution for various reasons, but the most popular* way of leaving your 'good looking' url in the address bar while the visitor navigates around your site.
(* popularised by registrars who offer url forwarding for those who own a domain name but only free webspace.)
Place your site within a frameset and avoid targeting links with _top.
This means the url of the frameset page will stay in the address bar while navigating the site only replaces the contents of one frame.
As mentioned, this method creates a small number of usability 'issues'**, but it's up to you to decide whether the pros outweigh the cons (or vice versa) and whether it is appropriate for your site.
(** some of these issues can be worked around by using relatively simple javascripts.)
Search results at SPF for the terms 'url AND masking'.
There'll surely be a fair amount of readin available about the various pros and cons in the more obvious looking thread titles in the list.
New Plastic Arts: Visual Communication | DesignateOnline
Mate went to NY and all he got me was this lousy signature





A few methods are demonstrated on http://msdn.microsoft.com/library/
however I still tend to have numerous problems with there site due to the use of frames.
Bookmarks