Greetings,
I have some javscript mixed into a applications templating and have
run into a problem the way javascript is handling a path for me.
I am via the template assigning a file path to a javascript variable.
The Tempalte: var myfile = "!FILEPATH!";
which becomes: var myfile = "C:\mydir\thefile.txt";
The issue of course being that the \'s are not escaped. I'm not as
fluent in Javascript as I'd like to be yet and I havn't figured out a
way to escape it so I can coninue on with the rest of the script.
I've tried to do a search and replace but javscript is already
interpreting the \'s as escaping a character.
How can I either autoescape the \'s (if possible), or access the raw
data so I can replace \ with \\?
Any help is appriciated.
Thanks!
BlueMac