Javascript files not passed to client when using Cold Fusion 7mx

Discussion in 'Programming' started by doctorb, Oct 4, 2006.

  1. #1
    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.
     
    doctorb, Oct 4, 2006 IP
  2. seamus.hogan

    seamus.hogan Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you post the code thats causing the error?

    Seamus
     
    seamus.hogan, Oct 18, 2006 IP
  3. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #3
    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
     
    datropics, Oct 26, 2006 IP