3 Replies Latest reply: Nov 26, 2009 10:04 AM by PegasusT4 RSS

    'Coldfusion' is undefined - JS Error

    kodemonki Community Member
      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!
        • 1. Re: 'Coldfusion' is undefined - JS Error
          kodemonki Community Member
          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.
          • 2. Re: 'Coldfusion' is undefined - JS Error
            kodemonki Community Member
            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!
            • 3. Re: 'Coldfusion' is undefined - JS Error
              PegasusT4 Community Member

              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.