Skip to main content
Inspiring
November 12, 2009
Question

CF8 AJAX CFC doesn't work on site

  • November 12, 2009
  • 2 replies
  • 735 views

I have two websites running under the same ColdFusion installation.    I have an autolook up CFC that works on one website and not the other.   Same code, etc.   Both IIS websites have the same access to the CFIDE directory.

I get a whole bunch of ugly errors using Firefox debugger:

Warning: reference to undefined property o.stopPropagation
Source File: https://mysite/CFIDE/scripts/ajax/ext/ext-core.js
Line: 17

but I get those on the site that is working too.   Same code, same file - just two different web addresses using the same CF installation.   This is making me crazy!

    This topic has been closed for replies.

    2 replies

    Inspiring
    November 12, 2009
    I have an autolook up CFC that works on one website and not the other.

    Can you elaborate on what you mean by "doesn't work"?  What does it do that is different from when it does work?

    I get a whole bunch of ugly errors using Firefox debugger:

    Warning: reference to undefined property o.stopPropagation
    Source File: https://mysite/CFIDE/scripts/ajax/ext/ext-core.js
    Line: 17

    but I get those on the site that is working too.

    Whether or not it's part of your current problem, you're gonna want to fix those as well.  It's not a very good look having JS errors pop-up.  Or indeed have the JS not working ;-)

    --

    Adam

    hml398Author
    Inspiring
    November 12, 2009

    On the site that doesn't work, the ajax spinner spins but no drop down ever appears.    Using the ajax debugger, the cfc is in fact returning the values that should show up, the drop down just doesn't drop to show them...

    Inspiring
    November 12, 2009

    Hi,

    Cross verify your page (which is throwing these errors) against the working one (I mean the other site).

    I think, you might be missing either <cfajaximport scriptsrc="...."> (or) <cfajaxproxy ...> tags in your file.

    HTH

    hml398Author
    Inspiring
    November 12, 2009

    It is literally the same file.   Loaded to both sites.   I have the file and the lookup.cfc file in both places.   Works on one and not the other.   Is there another file I just forgot about that needs to be on the new site?

    Also - if I call the CFC directly - it returns results...

    Inspiring
    November 12, 2009

    Also, since it is a virtual site, you may need to make your virtual host to find the Javascript files which are under the "CFIDE/scripts" directory..

    Follow the instrcutions which are given under the "Multihoming" documentation here.

    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=webservmgmt_6.html