Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-24-2005, 04:44 PM   PM User | #1
tdavis
Regular Coder

 
Join Date: Feb 2005
Location: Atlanta, GA
Posts: 171
Thanks: 5
Thanked 0 Times in 0 Posts
tdavis is an unknown quantity at this point
URL displayed in address bar

If I redirect a URL to another location, the "redirected to" location shows up in the address bar. Is there anyway to avoid this? I would like to have the domain name stay the same in the address bar and not show the actual location. Here is an example: http://www.rcr.name actually goes to http://www.tdavisconsulting.com/rcr. The latter shows up in the address bar after redirection takes place.

Thanks for you help!
tdavis
tdavis is offline   Reply With Quote
Old 02-24-2005, 07:01 PM   PM User | #2
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
Well you can of course use frames. But this is just bad ju ju, why would you not want the user to know exactly where they are? If they really want to know it's not hard to find out, and the solution will cause more problems in terms of search engine indexing and bookmarking.
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Old 02-24-2005, 07:39 PM   PM User | #3
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
Have you control of the domain name? if so, you might want to check out Just-The-Name.co.uk specifically, their url masking.

bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Old 02-24-2005, 09:07 PM   PM User | #4
benni
New Coder

 
Join Date: Feb 2005
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
benni is an unknown quantity at this point
Use this:

<SCRIPT language="JavaScript">

//--
//-- Script to give a link a description visible in the status bar.
//-- onMouseover="write_it('Add your text here');return true;" //-- onMouseout="write_it('');return true;"
//--

function write_it(status_text)
{
window.status=status_text;
}

</SCRIPT>

Put that between the head tags...

---------------------------------------------------------------------

<a href=" " onMouseover="write_it('What you want to appear!');return true;" onMouseout="write_it('');return true;">Link Description</a>

Try that,

Hope that helps you..

Ben
__________________
-----------------------------------------------
benni is offline   Reply With Quote
Old 02-25-2005, 03:03 PM   PM User | #5
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
that won't change the address bar text.
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Old 02-25-2005, 06:08 PM   PM User | #6
tdavis
Regular Coder

 
Join Date: Feb 2005
Location: Atlanta, GA
Posts: 171
Thanks: 5
Thanked 0 Times in 0 Posts
tdavis is an unknown quantity at this point
So, there is no solution?

I have asked this before and received the same response. I guess that MHTML is saying that the "status bar" and "address bar" are two different things. He is right that what I want to do is control what is displayed in the ADDRESS BAR. Why would I want to do this? Because I want to know if it can be done, not necessarily to actully do it. Although I dont really see why it should not be done. I am not trying to hide the actual address. The domain www.rcr.name already uses frames by the way...

If anyone else has any ideas, I would be appreciative!

tdavis
tdavis is offline   Reply With Quote
Old 02-25-2005, 06:16 PM   PM User | #7
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
There are many reasons why this sort of thing isn't possible. Just imagine this scenario.

You recieve an email from your bank notifying you of a change to the net banking facilities they provide. You click the link to see for yourself. The status bar text shows www.yourbank.com when you mouseover it, when you click it however it sends you to www.somedomain.com/hackers/bankfraud.html. On that page they have a script that changes the address to www.yourbank.com, everything seems just fine to the unweary user. They login to use net banking, they get a message saying the service is being upgraded and to come back later. Nothing seems out of the ordinary. Later on you type in www.yourbank.com and use net banking, only to find all of your life savings have been swindled.
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:45 PM.


Advertisement
Log in to turn off these ads.