URL encoding in Javscript

After almost freaking out about a problem with FlashVars and a URL string variable that contained many ampersands (&) I couldn't work out how to pass the URL in without Flash splitting the string up into separate variables until I came across this lovely JS function

encodeURIComponent(...)

This is a good one to remember

Leave a Reply