Connecting Tech Pros Worldwide Forums | Help | Site Map

Removing %20's

B3ndy
Guest
 
Posts: n/a
#1: Jul 23 '05
Hi,

Sorry if this is a really basic question but I am a complete novice with
js...

Basically I am passing a set of parameters between pages, this is
working great:

Eg: <a href="page.asp?desc=some%20text%20for%20the%20next %20page"

I am pulling this is nicely into the next page with:

document.write(qsParm['desc']);

The problem is its also displaying the %20's which is really annoying,
any thoughts on how I can get rid of them?

Cheers!

Ben

Joakim Braun
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Removing %20's


"B3ndy" <bendyer@CANOFSPAMgmail.com> skrev i meddelandet
news:428a42b2$0$11944$db0fefd9@news.zen.co.uk...
<snip>[color=blue]
> Eg: <a href="page.asp?desc=some%20text%20for%20the%20next %20page"
>
> I am pulling this is nicely into the next page with:
>
> document.write(qsParm['desc']);
>
> The problem is its also displaying the %20's which is really annoying,
> any thoughts on how I can get rid of them?
>
> Cheers!
>
> Ben[/color]

unescape(inString).

--
Joakim Braun


Closed Thread