starrwriter
Programmer
When used to browse for images, <input type="file"> produces a URL address with backward slashes in the text field. For example -- C:\Windows\Desktop\photo2.jpg.
I need the backward slashes automatically converted to forward slashes before the text field value (URL) is inserted into an image rollover javascript because backward slashes screw up the script (I know why -- escape, etc.) C:/Windows/Desktop/photo2.jpg works just fine in the script.
Isn't there a relatively simple script to do this conversion? I've searched Google, forums and everywhere else I could think of with no luck.
I need the backward slashes automatically converted to forward slashes before the text field value (URL) is inserted into an image rollover javascript because backward slashes screw up the script (I know why -- escape, etc.) C:/Windows/Desktop/photo2.jpg works just fine in the script.
Isn't there a relatively simple script to do this conversion? I've searched Google, forums and everywhere else I could think of with no luck.