 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

April 16th, 2004, 06:00 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
URL Masking
Hiya Guys!
I want my URL to be displayed as www.houseorhome.co.uk even if a user goes to another page. Is there a way of doing this in ASP.NET?? I know that this can be achieved in javascript but dont know how??
Any ideas
Adz - The World is not enough
__________________
Adz - Learning The J2EE Ways.
|
|

April 16th, 2004, 07:49 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
You can use frames (frames suck).
|
|

April 16th, 2004, 01:56 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Na man, I dont want to use frames, was thinking of some client side scripting that could be used?? Do you have any ideas?
Adz - The World is not enough
|
|

April 16th, 2004, 02:53 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
You can't use scripting to change the URL that is displayed in the location bar. That is the location of the page. If you try to change the location with javascript the browser will go to that new location. The only way I have ever seen to be able to do this is, as stu9820 suggested, to use frames. You just have to have a single frame frameset:
<frameset rows="*">
<frame src="http://www.mywebsite.com">
</frameset>
|
|

April 16th, 2004, 05:06 PM
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Use iframe tag. Make border=0 and turn scrollbars off. Few will ever know they're not on your site's index page.
|
|

April 16th, 2004, 10:21 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
...but everyone running a browser that doesn't support inline frames will not get anything. Using standard frames will ensure that you at least aren't breaking your own site for a lot of people.
|
|

April 17th, 2004, 02:05 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Nice one guys, I guess frames it is then. Does anyone know about diguising the URL in the task bar??
Adz - The World is not enough
|
|

April 18th, 2004, 02:51 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
Its only able if u open new window like this:
Code:
window.open( 'temp.htm' , 'NewWindow' , 'fullscreen=0 channelmode=0 directories=0 status=0 location=0 toolbar=0 menubar=0 scrollbars=0 resizable=0' ) ;
play with value of Attributes (zero & one). Its JavaScript!
Always:),
Hovik Melkomian.
|
|

April 19th, 2004, 09:04 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Do you mean in the status bar like when you mouse over a link?
You can make every link have something like this:
<a href="url" onMouseOver="window.status='';">click me</a>
This will set the window status bar to an empty string and the link's url won't be shown.
Peter
-------------------------
Work smarter, not harder
|
|

April 20th, 2004, 05:05 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Guys,
Peter, thanks man, I will implement that
easy now!
Adz - The World is not enough
|
|
 |