Question
passing coldfusion variable to javascript
I have an external javascript file which I have attached to my page. I want to set some variables in this file to corresponding CF variables.
How can I do this?
I tried:
---------
<html>
<cfoutput>
<head>
<script src="my_own.js"></script>
</head>
</cfoutput>
<body>
</body>
</html>
-----
but the CF code (e.g. #my_variable_name#) inside the my_own.js file remains unchanged.
Any ideas?
Thank you
