Skip to main content
March 26, 2009
Question

CF8 Tags Javascript Error

  • March 26, 2009
  • 1 reply
  • 783 views
I just got my sites moved to CF8 from CF7.

I am starting to experiment with the new CF8 features and I started with the most basic - simply adding a CFDIV or CFWINDOW tag to an otherwise empty page.

It appears that the addition of this tag this causes CF to add a bunch of Javascript to the page, including the line of code: "ColdFusion.Ajax.importTag('CFDIV');".

That line of code is throwing a Javascript error of: "ColdFusion is not defined".

I am unsure if this is an indication that I am doing something wrong in my code or if I need to contact my server admins because there might be something wrong with the CF settings or load on the server. Has anyone else run into this sort of thing?
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 26, 2009
    > It appears that the addition of this tag this causes CF to add a bunch of
    > Javascript to the page, including the line of code:
    > "ColdFusion.Ajax.importTag('CFDIV');".
    >
    > That line of code is throwing a Javascript error of: "ColdFusion is not
    > defined".
    >
    > I am unsure if this is an indication that I am doing something wrong in my
    > code or if I need to contact my server admins because there might be something
    > wrong with the CF settings or load on the server. Has anyone else run into
    > this sort of thing?

    I suspect you don't have a web mapping for the [coldfusion]/CFIDE dir? You
    either need to have that directory web-accessible, or use <cfajaximport> to
    tell CF to use a copy of the files from another directory. See
    http://livedocs.adobe.com/coldfusion/8/Tags_a-b_2.html for more detail.

    --
    Adam
    March 26, 2009
    Yes, that appears to be it. I talked to my server admin about this and it turned out that there was something wrong with the way that the cfide dir was mapped to the web site on the server