• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF8 Tags Javascript Error

New Here ,
Mar 26, 2009 Mar 26, 2009

Copy link to clipboard

Copied

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?

Views

733

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2009 Mar 26, 2009

Copy link to clipboard

Copied

> 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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2009 Mar 26, 2009

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation