jQuery and Coldfusion

February 18th, 2008 by Ken

So here’s something that had been a bit of a headache for me. I do my ColdFusion development on a local server on my laptop with debugging turned on. Now, when you make calls to a script, ColdFusion adds 2 links (and a bunch of javascript) to the bottom of each page. These 2 links are a huuuge pain when you use the Coldfusion pages for AJAX calls.

In my case, I was getting “div has no properties” errors in the Firefox error console.

What happens is, well. I don’t really know for sure, but I DO know how to fix it.

For any scripts that you’re going to use for AJAX GETs, start off with:

<cfsetting showdebugoutput=”no” />

And end with:

<cfabort />

This will save you a ton of headaches in the end. I don’t know why just the cfsetting doesn’t work but without the cfabort at the end, the links still appear.

Posted in Coldfusion, Development, jQuery | No Comments »