"Evertjan." wrote in message news:Xn********************@194.109.133.29...
: Roland Hall wrote on 18 mrt 2004 in
: microsoft.public.inetserver.asp.general:
: > dim str, file
: > str = "www.ssss.com/images/theimage.jpg"
: > file = split(str,"/")
: > Response.Write(file(ubound(file)))
:
: in jscript it is even nicer: str.split("/").pop()
:
: ===========
:
: <script>
:
: var response = document // for clientside jscript test
:
: var str = "www.ssss.com/images/theimage.jpg"
: response.write(str.split("/").pop())
:
: </script>
Yes, it is nice to do it all in one statement and I was trying to do that
with vbscript and couldn't figure out a way to do it. Is it possible to do
this on the server side?
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp