I have a large site written in ColdFusion and am trying to combine all of the javascript functions into ONE master scripts page (scripts.js) so far it doesn't seem to be working right. If you view this page: http://www.recruitinglife.com/events/State.cfm you will notice a "date search" section that should allow a person to select certain date ranges to pull state event information but the java script that is located in the master scripts page (scripts.js in the root directory) doesn't seem to be working. Based on having the javascript FORM in the content/sub page and the script in the "scripts.js" master page, is there anything I am missing that would help fix this page? ANY help would be so greatly appreciated! Thank you!
Hi, your problem is that since taking the scripts out of a cfm page and into a .js some of your cf variables are not getting parsed eg. var TitleArray = new Array(<cfoutput>#GetBoard.RecordCount#</cfoutput>); because this line is now in a .js file coldfusion is not outputting the content of #GetBoard.RecordCount#. All CF needs to be in a file that CF works with eg .cfm or .cfc. You could try dropping the above code back into your cf page and your .js should be able to use those variables. Hope this helps