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

'Coldfusion' is undefined - JS Error

Engaged ,
Jul 17, 2008 Jul 17, 2008
We have a CF8 server I am currently using for testing purposes and when I try to use Ajax I get a JavaScript error saying that 'ColdFusion' is undefined. I have read other posts in these forums and also other blogs and tutorials online and this issue seems to be coming from virtual CFIDE directories that aren't set up correctly.

I asked my SysAdmin to "add a virtual directory called CFIDE to [our site] and point it to the CFIDE directory (wwwroot/cfide)?

He said it was already set up with read and write permissions of scripts and executables, and that it allows anonymous access just like the rest of the domain.

Error Site: http://kodemonki.com/demo.cfm
Demo: http://tutorial6.learncf.com/

I would really like to use some of the neato UI stuff and jump in, but I need some help.

Can anyone offer it?

Thanks!
TOPICS
Getting started
3.5K
Translate
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

correct answers 1 Correct answer

Engaged , Jul 18, 2008 Jul 18, 2008
ahhh HA!

I had CFIDE set up as a virtual directory in one site, but not the one I was working on. Taking a gander through the CFIDE/scripts directory I saw the FCKeditor. I had used that in one of the sites! So I dump my cfwindow test code in there and voila!

So for those of you who might think that a virtual directory is serverwide, it is SITE wide!

Good luck to all!
Translate
Engaged ,
Jul 18, 2008 Jul 18, 2008
The server is IIS6
Virtual directory path: C:\Inetpub\wwwroot\CFIDE
checked things: Read, Log Visits, Index this Resource
The content comes from a 'directory located on this computer'
Execute permissions: Scripts and Executables

Under ASP.NET the file location is C:\Inetpub\wwwroot\CFIDE\web.config, but we don't use ASP, so I don't know if that would make a difference.
Translate
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
Engaged ,
Jul 18, 2008 Jul 18, 2008
ahhh HA!

I had CFIDE set up as a virtual directory in one site, but not the one I was working on. Taking a gander through the CFIDE/scripts directory I saw the FCKeditor. I had used that in one of the sites! So I dump my cfwindow test code in there and voila!

So for those of you who might think that a virtual directory is serverwide, it is SITE wide!

Good luck to all!
Translate
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
Explorer ,
Nov 26, 2009 Nov 26, 2009
LATEST

Just so there is a record of this on the Adobe site...

IF you are running Apache and have virtual hosts, be sure to add the line

Alias /CFIDE "c:/inetpub/wwwroot/CFIDE"

to the virtual host list. Of course change the path c:/inetpub/wwwroot/CFIDE" to whatever is set up in the CF Administrator.

Otherwise, none of your cfform stuff will work properly, AJAX will croak,  and you will get a 'Coldfusion' is undefined error.

Translate
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