Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Dec 2003
    Location
    Ohio
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    manipulating web page address

    Is there anyway in javascript that when I go to a particular webpage on my own domain, let's say www.blkshirt.net/version2/php/images/index.php (url doesn't exist) is there anyway that I could make the url appear as http://www.blkshirt.net in the address bar?

    I'm not sure if its possible with javascript or if I have to use another programming language. All pages are primarily coded in php.

    thanks for your help!

    blkshirt

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    only way you can try to do it is frames, other than that you are out of luck
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New Coder
    Join Date
    Dec 2003
    Location
    Ohio
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by A1ien51
    only way you can try to do it is frames, other than that you are out of luck
    I know you don't have to have frames...

    Here's an example of what I'm looking for...

    Go to www.kenttrack.com put your mouse over ANY of the links and you'll see the url is really - http://www.personal.kent.edu/~jwise but when you click that link www.kenttrack.com shows up in the address bar

    I don't see anything in the source code for it either

  • #4
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    If you didn't notice they are using frames on that site.

  • #5
    New Coder
    Join Date
    Dec 2003
    Location
    Ohio
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Brandoe85
    If you didn't notice they are using frames on that site.
    Sorry... I completely missed it...


  • #6
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You might want to Google the term "Domain Masking" and/or see if your hosting account offers it.

  • #7
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You just wana do something like this -

    Code:
    <html>
    <head>
    <title></title>
    </head> 
    <frameset rows='100%,*' border='0' frameborder='0' framespacing='0'>
    	<frame src='http://www.google.com' name='mainframe' frameborder='0' noresize='noresize' scrolling='auto'> 
    	<frame frameborder='0' scrolling='no' noresize='noresize'>
    </frameset>
    </body>
    
    </html>
    See? Even though you click links on the google page - the address remains the same.

    It's that method which domain services use to 'cloak' the real address.

  • #8
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mark87
    It's that method which domain services use to 'cloak' the real address.
    sometimes, but generally it is done through DNS settings. not something you're likely to have much influence over, certainly not scripting wise.
    *keep it simple (TM)

  • #9
    New Coder
    Join Date
    Dec 2003
    Location
    Ohio
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the tips, I'll keep plugging away at this!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •