SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast Pramit's Avatar
    Join Date
    Feb 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    change url in ajax page

    Hi!

    I want to change the url when I call another page through AJAX. The page must no refresh. I have seen trulia.com do it. Can anybody help please?

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I assume you mean changing the hash value? (e.g. #home).

    You can access this via "window.hash".

    One thing to note is that history will not work in most browsers so you'll need to use one of the available history scripts - if you don't it means that the back/forward buttons will not work within browsers. Here's an eg - http://www.mikage.to/jquery/jquery_history.html
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)


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
  •