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.
...
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?
...
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...
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...
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?
...
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...
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?...
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:
...
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)...
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 ?
...
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',{
...
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...
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..!
...
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...
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...
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...
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...
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...
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...
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...