Hi,
Is there an equivalent to URLdecode() in javascript ?
Details:
In Asp.Net I am using
HttpContext.Current.Response.Redirect("genericerro r.htm?ErrStr=" &
Err.Number & ": " & Err.Description)
In genericerror.htm I have:
<SCRIPT LANGUAGE="javascript">
var url = window.location.href;
var urlPos = url.indexOf('?') + 1;
var urlLength = url.length - urlPos;
if (urlPos > 0) {
url.substr(url, urlPos, urlLength);
url.split('&');
var values = url.split('&');
value = values[0].split('=');
document.write(value[1]);
}
</SCRIPT>
But I have problems with whitespace (and perhaps later other "funny" chars)
so how do I make the string "safe" or "back to normal" ?
tia
/jim