SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: Location bar

  1. #1
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Location bar

    Hi,

    Is there a way I can change what it says in the browsers location bar? I want to use this to hide ugly URL's like http://www.site.com/?var=1&var=2&var=3&var=4.

    Any ideas on how to do this?

    Ta

  2. #2
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to use post method for sending form.
    ______________________
    With best regards,
    Julia Pavlova
    Programmer
    Rapid Internet Development
    AlarIT Inc.
    URL: http://www.alarit.com

  3. #3
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    It's not from using the get method, I have put them there to read with PHP so I can get information to access user profiles in a database.

  4. #4
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    window.defaultStatus = 'my text';

    or

    <a href="#" onmouseover="window.defaultStatus='my new text'; return true;">link</a>

  5. #5
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Thanks for the reply but maybe I wasn't clear enough. I want to change the address bar so instead of displaying the actualy URL you are at, it shows a simple version without a querystring.

  6. #6
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this...

    PHP Code:

    <html>
      <
    head>
        <
    title></title>
      </
    head>
      <
    body>
        <
    a href="http://www.sitepointforums.com/newreply.php?s=&action=newreply&threadid=86388" id="a1" onmouseover="window.defaultStatus = document.links[0].hostname; return true;">link</a>
      </
    body>
    </
    html

  7. #7
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    That's still changing the Status bar, I'm looking to change the Address bar. Thanks for the ideas though

  8. #8
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OH:O, as mentioned previously use post
    PHP Code:
    <form action="index.php" method="post">
      <
    input type="text" value="abc" />
      <
    input type="submit">
    </
    form
    or

    check this site out http://www.devarticles.com/art/1/143

  9. #9
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Forms? Status bar?

    If ForceType isn't an option for you...

    Url masking.

    Not a perfect solution for various reasons, but the most popular* way of leaving your 'good looking' url in the address bar while the visitor navigates around your site.
    (* popularised by registrars who offer url forwarding for those who own a domain name but only free webspace.)

    Place your site within a frameset and avoid targeting links with _top.
    This means the url of the frameset page will stay in the address bar while navigating the site only replaces the contents of one frame.

    As mentioned, this method creates a small number of usability 'issues'**, but it's up to you to decide whether the pros outweigh the cons (or vice versa) and whether it is appropriate for your site.
    (** some of these issues can be worked around by using relatively simple javascripts.)


    Search results at SPF for the terms 'url AND masking'.
    There'll surely be a fair amount of readin available about the various pros and cons in the more obvious looking thread titles in the list.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  10. #10
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A few methods are demonstrated on http://msdn.microsoft.com/library/

    however I still tend to have numerous problems with there site due to the use of frames.


Bookmarks

Posting Permissions

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