how to hide URL in address bar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepikashalini
    New Member
    • Mar 2008
    • 18

    how to hide URL in address bar

    Hi,


    im new to html. i don't know how to hide query string in url.
    Example:



    i want to hide the query string in this URL.
    Like

    this.
    pls reply soon
  • mrhoo
    Contributor
    • Jun 2006
    • 428

    #2
    You cannot hide any part of the url that was used to call the document.
    google cross site scripting for the reasons why.

    Comment

    • hsriat
      Recognized Expert Top Contributor
      • Jan 2008
      • 1653

      #3
      Originally posted by deepikashalini
      Hi,


      im new to html. i don't know how to hide query string in url.
      Example:



      i want to hide the query string in this URL.
      Like

      this.
      pls reply soon
      Use method="post" for the form, instead of get.

      Comment

      • deepikashalini
        New Member
        • Mar 2008
        • 18

        #4
        Originally posted by hsriat
        Use method="post" for the form, instead of get.

        Hi,

        thanks for reply i use form.method='Ge t' but no change.
        other than any options

        Comment

        • hsriat
          Recognized Expert Top Contributor
          • Jan 2008
          • 1653

          #5
          Originally posted by deepikashalini
          Hi,

          thanks for reply i use form.method='Ge t' but no change.
          other than any options
          I told you to use method="post", not method="get"

          Comment

          • deepikashalini
            New Member
            • Mar 2008
            • 18

            #6
            i use 2 aspx page in my project.
            http://localhost:1067/sample/defaultx.aspx?r nd=0.4722948071 64148&filter=Ma gazineCategory& id=68

            i want to display in my project name only.
            http://localhost:1067/sample

            Comment

            • deepikashalini
              New Member
              • Mar 2008
              • 18

              #7
              Originally posted by hsriat
              Use method="post" for the form, instead of get.

              i used post method but no change. and i want to display my project name only.

              Comment

              • hsriat
                Recognized Expert Top Contributor
                • Jan 2008
                • 1653

                #8
                Originally posted by deepikashalini
                i used post method but no change. and i want to display my project name only.
                Perhaps you have added these variables in the action attribute.
                Post your code here, then I may tell you what's wrong.

                Comment

                • deepikashalini
                  New Member
                  • Mar 2008
                  • 18

                  #9
                  Originally posted by hsriat
                  Perhaps you have added these variables in the action attribute.
                  Post your code here, then I may tell you what's wrong.


                  var producturls = {

                  Category:"../defaultx.aspx?r nd=" +Math.random()+ "&filter=Catego ry",
                  }

                  Comment

                  • hsriat
                    Recognized Expert Top Contributor
                    • Jan 2008
                    • 1653

                    #10
                    Originally posted by deepikashalini
                    var producturls = {

                    Category:"../defaultx.aspx?r nd=" +Math.random()+ "&filter=Catego ry",
                    }
                    This string will always be shown, as its a part of the URL.

                    The suggestion I gave you is only possible if you are using form action.

                    Comment

                    Working...