coldfusion-8

When should I use Scope Locking (Application, Server, etc...) vs named locking in ColdFusion?

When is it appropriate to use <cflock scope="application"> or it's ilk as opposed to <cflock name="foo">? Specifically, I'm interested in using CFLock to protect shared objects in the application, session, or server scopes, but I'm also interested in finding out about different uses of locking in ColdFusion. ...

CF8's CFFEED quirks?

Anything one should watch out for when using CF8's CFFEED tag? Oh, here's a list... Yet another post on cffeed and columnMap : Raymond Camden's ColdFusion Blog anything else? ...

Executing ajax component http://path/to/my/component.cfc?method=something is not executing the method

Hello: I have a CFC with a remote function and am trying to populate it into my cfm page's cfselect element. But I am not getting anything in the select. I tried executing the cfc directly, but the method that I call does not execute. Here is the code for the CFC: <cfcomponent output="false"> <cffunction name="getYear" acces...

Why does Coldfusion not send any email if only one of them is invalid?

I have a cfmail sending out to approxiamately 8 people (dynamically). One of these addresses is incorrect and therefore the whole email is not sent out. Is there any settings in the coldfusion administrator or in the cfmail tag where this can be changed so it will send to the 7 correct people and only fail for the one person. I'm using C...

Can you split a PDF 'package' into separate files with CF8 or CF9?

The cfpdf tag has lots of options but I can't seem to find one for splitting apart a PDF package into separate files which can be saved to the file system. Is this possible? ...

Timeout reading verity collection - CF8

For a long time now I've been having a problem with using the verity search service bundled with ColdFusion 8. The issue is with timeout errors occurring when perfoming any operation on a collection. It's intermittent, and usually occurs after a few operations have been successfully performed. For instance: If I'm adding records to a co...

How to get list of scheduled tasks and last run results in ColdFusion?

We're trying to build a dashboard for our chron jobs -- CF, Java, SQLServer, etc. so that we can see when things were run last, what the result was, and when they're scheduled to run next. Is there a way with the CFAdmin API or some undocumented <cfschedule> trick to get a list of: What tasks are scheduled? What the last run time was?...

cffeed causing errors

Our web admins applied some hotfixes (don't know which ones) over the weekend and it seems to have killed <cffeed>. The error we get is below. We have the <cffeed> tag inside of a <cftry> but it still produces the error. Any thoughts on what would be causing the error or or how to circumvent without rewriting all our code? ROOT CAUSE: ...

Coldfusion not converting accented text or MS Word chars

Running Coldfusion 8, I am trying to clean text input before saving to a database that will take things like the MS equivalent of ' " - and accented letters, and converting them. I have tried replace, REReplace, and various UDFs found on the internet. None seem to work. In fact, I tried this: <cfscript> function cleanString(string)...

How to embed an image in a PDF using cfpdfform

I'm dynamically generating a PDF with a few variables but also need to be able to embed an image on the PDF. Anyone have any experience doing this using ? ...

coldfusion Programming question

hi when I clicks on CKEDITOR in IE8 for enter some text , the cursor will not display on editor. why this is happening? I am able to type text with the help of 'Tab' Key. here is the code $(document).ready(function(){ $(function(){ new slider(A_INIT5h, A_TPL5h); try { CKEDITOR.replace( 'editor1',{ ...

How do you make an added row from QueryAddRow() the first row of the result from a query?

I am outputting a query but need to specify the first row of the result. I am adding the row with QueryAddRow() and setting the values with QuerySetCell(). I can create the row fine, I can add the content to that row fine. If I leave the argument for the row number off of QuerySetCell() then it all works great as the last result of the q...

Cfinput AutoSuggest problem

when i enter any test to cfinput field it returns to me all related value but first one is selected, and when i enter it takes first return value...i dont want the first selected value until i select by scrolling... Thanks in Advance..! ...

Using cachedwithin attibute inside cfquery

When you use the cachedwithin attribute in a cfquery how does it store the query in memory. Does it store it by only the name you assign to the query? For example, if on my index page I cache a query for an hour and name it getPeople will a query with the same name on a different page (or the same page for that matter) use the cached res...

Insert a Coldfusion struct into a database

If I wanted to save a contact form submission to the database, how can I insert the form scope in as the submission? It's been some time since I used Coldfusion. The contact forms vary depending on what part of the site it was submitted from, so it needs to scale and handle a form with 5 fields or one with 10 fields. I just want to stor...

Coldfusion 8: Array of structs to struct of structs

I've got an array items[] Each item in items[] is a struct. item has keys id, date, value (i.e., item.id, item.date, item.value) I want to use StructSort to sort the item collection by a date Is this the best way to do it in ColdFusion 8: <cfset allStructs = StructNew()> <cfloop array = #items# index = "item"> <cfset allStructs[it...

ColdFusion speed cost of FileExists

I want to: on every page, check if a file exists include that file if TRUE i.e.: <cfset variables.includes.header = ExpandPath("_inc_header.cfm")> <cfif FileExists(variables.includes.header)> <cfinclude template = "_inc_header.cfm"> </cfif> Is this a good idea? edited to use just "_inc_header.cfm" as the template Alternati...

Adding a text watermark

I've learned how to add a watermark to a pdf. <cfpdf action="addwatermark" image="NoteToSelf.png" pages="1" position="0,0" showOnPrint="no" source="my.pdf" destination="#myDir#\new.pdf" overwrite="yes" opacity="10"> The way I read it, the watermark has to be an image. But NoteToSelf.png needs to be te...

Dimensions of a pdf page

I'm adding a watermark to pdf document, but position 0,0 is the bottom left-hand corner. I need to put the watermark at the top left-hand corner. Q: Using version 8 of ColdFusion, how do I determine the page size, or how can I position the watermark at the top? Update: I think I should be looking at action="addHeader". Using leftmargi...

Removing set number of characters from end of string with ColdFusion

Hi there, Simple request (hopefully) here. I have a string which whilst it varies in length, will always need the last 6 characters removed. Using a 3rd party web service, so I'm unable to edit the response in the XML before outputting. If anyone can suggest a quick way of trimming them off i'd be really grateful! here is the string...