I need to pass the value of the FragmentImageFileName to a javascript function and ran into a problem
the image is in a subdirectory called "images" so I have an image name of
when I then generate the code, it creates
problem then is that Javascript treats the \r as a newline (regular expression) and I end up with
(note the new line, the missing \ and the missing r)
the javascript I have is
can anyone tell me how to remove the \r intepretation from the javascript - I've tried the javascript command of escape(FragmentImageFileName) but that doesn't work
any ideas please
the image is in a subdirectory called "images" so I have an image name of
images\racesuit.jpg
popItUp('../images\racesuit.jpg','the title')
<img src='../images
acesuit.jpg' title='the title'>
acesuit.jpg' title='the title'>
the javascript I have is
Code:
function popItUp(url,title) newwindow.document.writeln('<img src=' + url + ' title=\"' + title + '\" alt=\"' + title + '\" >'); }
any ideas please
Comment