A question on building URI.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    A question on building URI.

    If my URI builds like this ....
    URI="URI?param= my name is debasis & jana&param1=hel lo word";
    If i encode the URI then i request for the response then what would be the value of param & param1?
    Please Exaplin .....and can't i get the full value of param?
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    I got the solution ....
    I have to build the URI like this ....
    [code=javascript]
    var uri = "uri?param="+es cape("debasis&j ana")+"&....... .";
    [/code]

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Use encodeURICompon ent() instead.

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        Originally posted by acoder
        What's the problem with escape to encode a URI component ?

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          See this article - the summary in particular.

          Comment

          Working...