Thursday 24 February 2005 2:14:42 pm
When I place the following code in my template file, it works fine:
<script>
var test = "{'test.jpg'|ezimage(no)}";
document.write("test:" + test); </script>
It outputs: <b>design/mysite/images/test.jpg</b> But when I place the code (between the script tags) in an external js-file and include the javascript file in my template, the output is: <b>"{'test.jpg'|ezimage(no)}"</b>
I have tried several alternatives: - single quotes, double quotes, no quotes But whatever I tried, the url of my image file was not returned. Can you help me pleaze! Best regards Richard Stronkman
|