PDA

View Full Version : How to hide the path of file in the address in ie



auro2u
12-31-2005, 11:59 AM
sir,


my client doesn't want me to dispaly the names of the web pages in the address bar . he only wishes to display the url and not the say, / index.html part .


expect your generous meditation in this regard .

With regards,

auro.

cr3ative
12-31-2005, 01:07 PM
*thinks*

I can't see why he'd want to do that, but there are some very undignified ways of doing it, such as putting the whole site in a massive frameset. But please, don't do that. It's not nice.

The only way I can think of doing it properly is to have each page (assuming there aren't that many) in its own folder, for example, http://site/prices, http://site/information, etc, etc.

Call the files index.html and you won't need to link to the file itself, hopefully. Just set the link to http://site/page/ and it'll load the index.html file.

Good luck,
cr3

Twey
12-31-2005, 03:00 PM
Tell him that it's neither feasible nor necessary, and the clumsy methods of half-achieving it convey absolutely no benefits.

cr3ative
12-31-2005, 05:00 PM
It's neither feasible nor necessary, and the clumsy methods of half-achieving it convey absolutely no benefits.

Twey
12-31-2005, 05:22 PM
I meant the OP, to his/her client. But hey, that works too. :p

mwinter
12-31-2005, 05:32 PM
Tell him that it's neither feasible [...]That's not necessarily true, but it certainly isn't practical (and I agree that it's not necessary).

What can be worth doing is removing extensions from URLs. Over the long term, it can reduce maintenance effort should, say, a previously static document (.html) is made dynamic (.php, .asp, etc.). A server-driven content-negotiation mechanism (type-maps or MultiViews, in Apache) is one way to go about doing it.

Mike

zeeman48
01-01-2006, 12:39 AM
One possible way might be to do the following:
First, go the root URL of your site (in this example it is http://mysite.com/). Then, hold down alt and simultaneously press "Print Screen" (this is usually on the right of your keyboard to the left of the number pad and above the Insert, Home, Page Up/Down, Delete buttons). Then open up mspaint (on my computer it is under Start->Programs->Acessories->Paint but it could be anything) and hold down Ctrl(control) and then press V. Select the "box" tool (is a button with a little dashed rectangle in the middle) and click and drag around the address bar. Then make a script that pops up a window and make it display everything except for the address bar and use the images to insert he address bar within a frame.

I am not really putting any finalization on this because there is a lot of room for expansion. For example, you could use a web designer to insert a layer with a text box for URL navigation over where the URL bar in the image is. Then you could insert a copy of just the "Go" button or whatever that is a link that will navigate to the address in the box. Then you could do something where if the URL is not within your clients site, popup a dialog warning them they are not in a normal browser.
Since I am not really that great at actually coding stuff I will leave that to you. Besides, sometimes peoples coding styles vary depending on how they learned or how they like to code and can cause major read-ability problems.
Hope this helped at least a little!:D

jscheuer1
01-01-2006, 06:58 AM
Tell him that it's neither feasible nor necessary, and the clumsy methods of half-achieving it convey absolutely no benefits.


It's neither feasible nor necessary, and the clumsy methods of half-achieving it convey absolutely no benefits.


I meant the OP, to his/her client. But hey, that works too.


Say goodnight, Gracie.


Goodnight Gracie!

I couldn't resist.

Twey
01-01-2006, 01:20 PM
First, go the root URL of your site (in this example it is http://mysite.com/). Then, hold down alt and simultaneously press "Print Screen" (this is usually on the right of your keyboard to the left of the number pad and above the Insert, Home, Page Up/Down, Delete buttons). Then open up mspaint (on my computer it is under Start->Programs->Acessories->Paint but it could be anything) and hold down Ctrl(control) and then press V. Select the "box" tool (is a button with a little dashed rectangle in the middle) and click and drag around the address bar. Then make a script that pops up a window and make it display everything except for the address bar and use the images to insert he address bar within a frame.While you're at it, you could just grab a copy of the Firefox source, modify it to hide any address in its address bar that contains your domain, and force everyone who visits your website to use it. But even then someone could use a packet sniffer.
Redesigning chrome is never a good idea.


Say goodnight, Gracie.
Goodnight Gracie!Heh.