PDA

View Full Version : use of the escape()



ltoso
Nov 27th, 2009, 06:53 AM
Hi,
i am new to Javascript i want to know what is the use of the escape() function
i read it on w3schools that the function is to encode the string passed top it so as it convert into ascii format so that it can be transferred over any network, can anybody explain me this with an example.

Please recommend
Regards
ltoso

Philip M
Nov 27th, 2009, 08:26 AM
Have a look at

http://www.devguru.com/Technologies/ecmascript/QuickRef/escape.html
http://www.yuki-onna.co.uk/html/encode.html

URL (or escape) encoding is used to transmit URL, queries etc., over the HTTP protocol.

http://www.permadi.com/tutorial/urlEncoding/