Wrox Programmer Forums
|
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
 
Old April 16th, 2004, 06:00 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default 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.
 
Old April 16th, 2004, 07:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can use frames (frames suck).

 
Old April 16th, 2004, 01:56 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default

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
 
Old April 16th, 2004, 02:53 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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>
 
Old April 16th, 2004, 05:06 PM
Registered User
 
Join Date: Dec 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use iframe tag. Make border=0 and turn scrollbars off. Few will ever know they're not on your site's index page.

 
Old April 16th, 2004, 10:21 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

...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.
 
Old April 17th, 2004, 02:05 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default

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
 
Old April 18th, 2004, 02:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

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.
 
Old April 19th, 2004, 09:04 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
 
Old April 20th, 2004, 05:05 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default

Thanks Guys,

Peter, thanks man, I will implement that

easy now!

Adz - The World is not enough





Similar Threads
Thread Thread Starter Forum Replies Last Post
Masking flat file longs Linux 0 August 2nd, 2007 04:50 PM
Masking parameter values within url. aguivera Pro JSP 5 August 29th, 2006 09:17 AM
Masking parameter values within url. aguivera JSP Basics 0 August 2nd, 2006 01:26 PM
extract URL from Favorites (.URL Files) PhilHawks VB.NET 2002/2003 Basics 2 November 2nd, 2004 04:35 AM
Masking jmss66 Classic ASP Basics 2 September 9th, 2003 03:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.