Connecting Tech Pros Worldwide Help | Site Map

Removing %20's

  #1  
Old July 23rd, 2005, 08:52 PM
B3ndy
Guest
 
Posts: n/a
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
  #2  
Old July 23rd, 2005, 08:52 PM
Joakim Braun
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Space and "-" from a string Ahmed, Shakir answers 4 June 27th, 2008 05:25 PM
Seeking suitable A97 FN for removing punctuation from a string MLH answers 3 September 2nd, 2007 11:45 PM
removing duplicate entries in an array joestevens232 answers 12 April 11th, 2007 01:41 PM
Fastest way removing duplicated value from string array Niyazi answers 6 May 15th, 2006 06:25 AM