Category: ColdFusion

Proximity searching in sql server

Just need to keep track of this for future ussage. After a bunch of googling this was the clearest example of doing a proximity search in SQL Server that I could find.

implementing a proximity search in sql server

(Via Googling.)

0 comments | Posted by Daniel Short on Jan 21, 2009 at 3:27 PM | Categories: ColdFusion -

Filling date gaps in a report

I needed a way to push a bunch of blank dates into a query for a cfchart to ensure I didn't have any gaps in my date coverage. This article did the trick...
Read complete post
0 comments | Posted by Daniel Short on Jan 6, 2009 at 11:45 AM | Categories: ColdFusion -

AjaxOnLoad and cfhtmlhead

I had an odd issue today where I was using AjaxOnLoad to run a javascript, and I was getting an error that the function was not defined. The function and the ColdFusion.Event.registerOnLoad even were both getting added to the page. I could create an anchor tag on the page with an onclick and it would run the code fine, so I was perplexed as to why it was telling me that the function wasn't defined. See if you can spot the problem. Turns out that CF is simply adding content to the head of the document as you call the CF code. This means that with the above code snippet, the registerOnLoad script was getting called before the other function in the code. Changing my CF to this fixed the issue: I'm not used to thinking that hard about where I stick my cfhtmlhead tags. Guess I better pay closer attention next time.
1 comments | Posted by Daniel Short on Dec 11, 2008 at 1:35 PM | Categories: ColdFusion -