G
Goran Petrovic
I wrote a vb function, but i need it i jaavscript..i know java sintax but am
not sure how to make it work. this extracts teh file name from a path...i
thought strcpy..or something..but dont really know. Please help
function GetWriterName
str=document.location
for i = len(str) to 1 step -1
if mid(str,i,1)="/" then
str= mid( mid(str,i+1,100),1,len( mid(str,i+1,100))-4)
str="../../../aspx/quotes"+str+".aspx"
GetWriterName="../../../aspx/quotes"+str
exit function
end if
next
end function
Goran
not sure how to make it work. this extracts teh file name from a path...i
thought strcpy..or something..but dont really know. Please help
function GetWriterName
str=document.location
for i = len(str) to 1 step -1
if mid(str,i,1)="/" then
str= mid( mid(str,i+1,100),1,len( mid(str,i+1,100))-4)
str="../../../aspx/quotes"+str+".aspx"
GetWriterName="../../../aspx/quotes"+str
exit function
end if
next
end function
Goran