Re: embarrassingly easy question on JS
by "Martin Clifford" <MLC1(at)nrc.gov>
|
Date: |
Mon, 06 May 2002 08:30:13 -0400 |
To: |
<Hilma(at)hilma.freeserve.co.uk>, <hwg-basics(at)hwg.org> |
|
todo: View
Thread,
Original
|
|
You have to use the built in JavaScript functions escape() and unescape() =
to encode and decode the special URL characters. You'll also have to deal =
with this if you get into using PHP, so it's a good thing to know.
Martin
>>> "Hilma" <Hilma(at)hilma.freeserve.co.uk> 05/06/02 05:42AM >>>
hi all -
This is very basic (but it is a basic list ;-) -
and although it is an HTML list, not a JS list, i hope someone will still
help!
I have succeeded in passing my photo name and title, as a string, to a new
page:
"javascript:openWindow('HHPhotoSingle.htm?Pic=3DDofE02,The Duke of =
Edinburgh
Team.','myNewWindow',800,600)"
But, the spaces have all been replaced by %20 in the JS, so when i display
this title, i get
"The%20Duke%20of %20Edinburgh%20Team!
I cannot work out what to look for in the thick JS manuals i have, and
whilst this must be pretty easy to fix, i can't find the correct page :-(
many thanks -
h.
HTML Guild: hwg-basics mailing list archives,
maintained by Web Professionals @ IWA