Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Modifying URL using java script

Modifying URL using java script

Scheduled Pinned Locked Moved Web Development
javajavascriptdatabasesysadmintools
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alok_2k3
    wrote on last edited by
    #1

    Hi All, I want to add query string in the URL using javascript but I don't want to reload or redirect the page. (When I use window.location = "some value", it redirects me to the corresponding page). I also want to access the query string value in my server side code. Please help me. Thanks in Advance Alok...

    E 1 Reply Last reply
    0
    • A alok_2k3

      Hi All, I want to add query string in the URL using javascript but I don't want to reload or redirect the page. (When I use window.location = "some value", it redirects me to the corresponding page). I also want to access the query string value in my server side code. Please help me. Thanks in Advance Alok...

      E Offline
      E Offline
      Eduard Keilholz
      wrote on last edited by
      #2

      Javascript is purely client side. If you want to retrieve data server side, you need a postback. You may however consider AJAX, which will do a postback, but is capable of doing a postback without the entire page reloading. Cheers, Eduard

      .: I love it when a plan comes together :. http://www.zonderpunt.nl

      S 1 Reply Last reply
      0
      • E Eduard Keilholz

        Javascript is purely client side. If you want to retrieve data server side, you need a postback. You may however consider AJAX, which will do a postback, but is capable of doing a postback without the entire page reloading. Cheers, Eduard

        .: I love it when a plan comes together :. http://www.zonderpunt.nl

        S Offline
        S Offline
        Spoks_ST
        wrote on last edited by
        #3

        My suggestion would be - use web service, to get data to client without postback.

        It`s nothing to wory before something happen and when it happents it`s alredy to late to wory! :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups