changing URL without refreshing the page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shoonya
    New Member
    • May 2007
    • 160

    changing URL without refreshing the page

    can i change the url of any page from abc.php?foo=tes t1 --> abc.php?foo=tes t2
    without refreshing the page?

    shoonya
  • merseyside
    New Member
    • Mar 2007
    • 48

    #2
    Originally posted by shoonya
    can i change the url of any page from abc.php?foo=tes t1 --> abc.php?foo=tes t2
    without refreshing the page?

    shoonya
    Doesn't
    Code:
    document.location.href = "abc.php?foo=test2"
    meet your needs?

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      You're probably looking for the search property.

      Comment

      • shoonya
        New Member
        • May 2007
        • 160

        #4
        @ merseyside

        i want the same functionality but dont want to refresh the page
        suppose a function foo is called then it should change the content of inner frame and also change the url so that refreshing doesn't takes u back to original page

        hope i am clear
        shoonya

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by shoonya
          @ merseyside

          i want the same functionality but dont want to refresh the page
          suppose a function foo is called then it should change the content of inner frame and also change the url so that refreshing doesn't takes u back to original page

          hope i am clear
          shoonya
          Then what you'll want is Ajax (get the response and change the content) to prevent the refresh as well as the search property to change the url.

          Comment

          Working...