Hello all,
I'm looking for some help with javascript and using
it in my witango app.
I'm developing a file upload manager. The upload
form has three field the File field, the filename field and the fileuploadtype
field.
What i need is for when the user selects the browse
function and selects the file from thier system to upload I want javascript to
parse that field value from the end of the value string to the first occurance
of \
Currently I'm using:
File: <input type=file
name=file size=15 value=""
onChange="this.form.FileName.value=this.value;"><br>
FileName: <input type=text name=FileName size=15 value="" onChange="this.value=this.form.File.value;"> ths gives me the string with from <@webroot>
(ex. C:\InnetPub\www\sitename\media\filename.ext) whay I need is filename.ext
anyone know how to do this?
csmith
|
- Re: Witango-Talk: FileUpload JavaScript ? Chris Smith
- Re: Witango-Talk: FileUpload JavaScript ? Gene Wolf
- Re: Witango-Talk: FileUpload JavaScript ? Chris Smith
- Re: Witango-Talk: FileUpload JavaScript ? Robert Garcia
- Re: Witango-Talk: FileUpload JavaScript ? Ford Pedersen
- Re: Witango-Talk: FileUpload JavaScript ? Robert Garcia
- Re: Witango-Talk: FileUpload JavaScr... JJ Smith
- Re: Witango-Talk: FileUpload Jav... Robert Garcia
- Re: Witango-Talk: FileUpload... JJ Smith
- Witango-Talk: field search a... John Hollister
- Re: Witango-Talk: field sear... Garth Penglase