Wordpress Themes - Debt Consolidation - Credit Report - Find services - Sportingbet

PDA

View Full Version : Javascript files not passed to client when using Cold Fusion 7mx


doctorb
Oct 4th 2006, 3:16 am
Hi all,

I have been running sites for many years on CF (4.1). I know...ancient.


I have a site which uses a dropdown menu loaded through src files
<script src='javascript/scripts.js' type="text/javascript"></script>
The same implementation is working under CF4.1 but won't work under CF MX 7 to which I am trying to upgrade on a new server. Everything else is working fine.

but I get "Object expected" when I try to call functions in this scripts file which suggests that the files are not passed to the client. I have used absolute paths in the link and the problem remains.

Interestingly when I remove the CF tags and save the template file as .htm in the same directory as the CFM file the scripts execute perfectly which rules out firewall issues.

Is CF 7 doing something to the <script>? Is it trying to run the javascript on the server and not passing it to the client as a result? I understood that CF ignored <script> tags.

Any thoughts.

seamus.hogan
Oct 18th 2006, 8:50 am
Can you post the code thats causing the error?

Seamus

datropics
Oct 26th 2006, 10:17 am
hmm - interesting

Apart from posting the code (which would be great). Try either of these two:

1) add a double slash
2) rename the javascript folder to something else