Alright, I'm very new to JavaScript but I'm fair with PHP.
I'm working on an uploader script and what I'm trying to do is take the file name from the file input box.
I looked at string manipulation in terms of using indexOf, substr, substring, etc... and I can't figure it out for the life of me!
Here is what I'm trying to do:
Example:
I select the file:
C:\Documents and Settings\BSPROG S\Desktop\DeVry \Previous work\BIS 440\ESSS_Case_S tudy.zip
I want to use the document.write command to write:
ESSS_Case_Study .zip
I've looked through my "JavaScript : The Definitive Guide" book from O'Reilly but luck.
Thanks for your help.
Steven
I'm working on an uploader script and what I'm trying to do is take the file name from the file input box.
I looked at string manipulation in terms of using indexOf, substr, substring, etc... and I can't figure it out for the life of me!
Here is what I'm trying to do:
Example:
I select the file:
C:\Documents and Settings\BSPROG S\Desktop\DeVry \Previous work\BIS 440\ESSS_Case_S tudy.zip
I want to use the document.write command to write:
ESSS_Case_Study .zip
I've looked through my "JavaScript : The Definitive Guide" book from O'Reilly but luck.
Thanks for your help.
Steven
Comment