Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript url encode.

Status
Not open for further replies.
And I think the function used is called simply 'encode()', and is used like:

encode(url)

and use the 'unencode()' to get it back.

:)
 
Thanks....
it's actually escape() and unescape() function. Iza's right, when i unescape(url),it give me the %20 to replace the space.

 
escape() and unescape() will do nothing with "/" and "\".

If you are going to have parameters with slashes, you will need to change them yourself.
 
I seem to remember that someone was also having a problem with escape not encoding plus signs properly as well. If you're likely to encounter those, better test that out. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top