load CF varibales into javascript array without outputing to source code
I have a javascript array for dynamic dropdowns - Automobile, makes,models, etc.
The javascript arrays are populated by by cf queries
Everythign works and functions fine - but it also loads the entire array (hundreds of lines of code) into the browser source code.
I would like to have the javascript arrays hidden from the browser source code by calling it:
<script language="JavaScript" type='text/javascript' src='../js/super.js'></script>
But when I code like this, the js file 'super.js' does not run the cf variables.
The only way I can get it to function right now is to save a cf file called 'super.cfm' and have it run the cf query, then list the javascript code under the query on this cf template.
THis works - but again, it causes the entire javascript code to be visible to the browser source code...
any ideas? - I am on cf 7
thanks in advance
