Hi there!. There is not an equivalent to urlencode in javascript, at least I don“t know one, but you can use a combination of escape js function and RegExp to get what you are looking for, something like
function doUrlEncode(str)
{
regular = new RegExp("/","g");
val = escape(str);
val = val.replace(regular,"%2F");
return val;
}
and you just call it with your urls as the argument.