RE: using a variable in variable.lastIndexOf not working properly
by Chuck Evans <Chucke(at)captura.com>
|
| Date: |
Thu, 13 Jan 2000 10:04:19 -0800 |
| To: |
"'Cyanide _7'" <leo7278(at)hotmail.com>, Chuck Evans <Chucke(at)captura.com> |
| Cc: |
hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
Thanks! I'm not a full-time programmer, so I tend to think in absolute steps
and forget that a lot of it can be run together. I was the same way with
Unix shell scripts until a friend showed me the magic of the pipe (|)
symbol.
---------------------------------------------------------
Chuck Evans
Web Marketing Manager
Captura Software, Inc.
(425) 424-1155
chucke(at)captura.com
www.captura.com
-----Original Message-----
From: Cyanide _7 [mailto:leo7278(at)hotmail.com]
only needs one line. and substring doesn't need the second argument to say
"til the end of the string", all it needs is the start and it goes from
there. more efficient than declaring three variables:
var path = location.pathname.substring(3);
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.