Skip to main content
WolfShade
Legend
December 27, 2010
Question

Exception caught and not thrown (CF9 Server)

  • December 27, 2010
  • 2 replies
  • 1262 views

Hello, everyone.

I've recently started seeing a JavaScript error with EVERY click of any link on the site.

(I know this isn't the JavaScript forum - please give this a glance.. it's CF related, I promise.)

I've tracked it down to "cfajax.js", which is not being included in any documents by any of the developers on this project, so I'm assuming it's something that is being included by the CF9 Server.  Apparently, there is some sort of issue with "parseJSON" that I can't quite figure out.

Has anyone run into this, before, or heard of it?  Any ideas or suggestions as to what could be causing the error messages?  I'm running out of ideas.

Thanks,

^_^

    This topic has been closed for replies.

    2 replies

    WolfShade
    WolfShadeAuthor
    Legend
    December 27, 2010

    I found the solution completely by accident.

    ilssac
    Inspiring
    December 27, 2010

    Does the client users have access the cfajx.js file?  Does this path work?  http://yourDomain/CFIDE/scripts/cfajax.js

    ColdFusion has a scripts directory, coldfusionRoot/CFIDE/scripts/.  By default ColdFusion will usually create a mapping/virtual directory to this location.

    But sometimes that does not happen do to Installation and|or network choices.  There are alterante ways to provide these recources so that ColdFusion User Interface functions work properly.  You can provide an alternate scripts path in the ColdFusion Administrator, you can provide a path through a parameter in many of the tags that need them.  You can manually create a path that works. Etc.

    WolfShade
    WolfShadeAuthor
    Legend
    December 27, 2010

    The mapping is working correctly - there are two developers working on this and we each have a copy of the site in our own user directory on the development server, plus there is a version in the root for testing.  The other two versions of the site are not experiencing this issue - it's only on the copy in my user directory that is experiencing this.  I'm guessing that the issue lies in JavaScript that I've added to my copy that does not exist in the other two copies; but I'm having difficulty in tracking where my erroneous code is.  I was hoping that someone else may have run into this issue and can help me pinpoint what I did incorrectly.

    ^_^

    Community Expert
    December 27, 2010

    If this is happening on every link you click, that indicates there's an event handler that's being invoked for all links (presumably without the links including specific code to invoke the handler). To the best of my knowledge, CF doesn't include anything like that even when you use CF's JavaScript. If you use Firebug, it should lead you to the problematic event handler.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Read this before you post:

    http://forums.adobe.com/thread/607238

    Dave Watts, Eidolon LLC