Connecting Tech Pros Worldwide Help | Site Map

cookie value is time value such as "11:33:44"

terry
Guest
 
Posts: n/a
#1: Jul 20 '05
Hi,

When I store cookie value "12:05:33" and read it again,
I find the value become "12%3A05%3A33",
how to read or convert it correctly?

Thanks!
Janwillem Borleffs
Guest
 
Posts: n/a
#2: Jul 20 '05

re: cookie value is time value such as "11:33:44"



"terry" <leonlai2k@yahoo.com> schreef in bericht
news:9904d48.0307310837.4b06b5ba@posting.google.co m...[color=blue]
> Hi,
>
> When I store cookie value "12:05:33" and read it again,
> I find the value become "12%3A05%3A33",
> how to read or convert it correctly?
>
> Thanks![/color]

Use the unescape() function for this:

var urldecodedValue = unescape(urlencodedValue);


JW



Dr John Stockton
Guest
 
Posts: n/a
#3: Jul 20 '05

re: cookie value is time value such as "11:33:44"


JRS: In article <9904d48.0307310837.4b06b5ba@posting.google.com> , seen
in news:comp.lang.javascript, terry <leonlai2k@yahoo.com> posted at Thu,
31 Jul 2003 09:37:35 :-
[color=blue]
>When I store cookie value "12:05:33" and read it again,
>I find the value become "12%3A05%3A33",
>how to read or convert it correctly?[/color]

unescape("12%3A05%3A33")

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Closed Thread