coldfusion

How to get rid of weird characters in my RSS feed?

Hi, I've created a utf8 encoded RSS feed which presents news data drawn from a database. I've set all aspects of my database to utf8 and also saved the text which i have put into the database as utf8 by pasting it into notepad and saving as utf8. So everything should be encoded in utf8 when the RSS feed is presented to the browser, howe...

How to get the name of the component that's extending mine in ColdFusion?

Let's say I have the following component called Base: <cfcomponent output="false"> <cffunction name="init" access="public" returntype="Any" output="false"> <cfset variables.metadata = getmetadata(this)> <cfreturn this> </cffunction> <cffunction name="getmeta" access="public" returntype="Any" output="false"> ...

How can I log *all* Coldfusion scripts and CFCs used?

Hi everyone. I am looking to determine from a large code base, what files are actually being used over a period of time. I need to know about CFM pages and CFCs as well as any included CFM files etc. I know I can get some of this info using logging in application.cfm, or by using IIS, but I will still be missing any include files and...

Coldfusion web application level query caching

Hi all, We have a number of web servers, each running one version of Coldfusion. The cluster has a load balancer on front of it. Obviously each of these servers has it's own CF application running and this implements query caching at the CF application level. However, since all of these servers service the one web application, many o...

Is OpenBD or Railo a viable replacement for ColdFusion?

Has anyone here had any experience with running OpenBD or Railo in production? We have some legacy CF6.1 apps that need to be hosted somewhere and I'm wondering if OpenBD or Railo is stable enough for production use, won't require a great deal effort to migrate to, etc. ...

How do I redirect based on referral in ColdFusion

I have a coldfusion web site I need to change. Have no idea or experience with this environment (I do know ASP.NET). All I need to do is to write a condition based on the referral value (the URL) of the page, and redirect to another page in some cases. Can anyone give me an example of the syntax that would perform this? ...

Flex: How do I access the data in my flex form and submit it to a ColdFusion cfc?

I want to submit the values of a flex form to a ColdFusion cfc. If I have a flex form (see below) is the data in the form an object? Or do I have to create an object based on the id's in the form and then pass that new object to the coldfusion component? <mx:Form x="10" y="10" width="790" id="myFrom" defaultButton="{createReport}"> ...

Increase request timeout for a thread in CFML

I have a web application that is generating hundreds of PDFs in batch, using ColdFusion 8 on a Windows/IIS server. The process runs fine on my development and staging servers, but of course the client is cheap and is only paying for shared hosting, which isn't as fast as my dev/staging boxes. As a result, PDF generation threads are timi...

How can I write a standalone coldfusion class in flex 3?

Using flex 3 with the coldfusion plugin, can I not write a standalone coldfusion class which I can invoke from my flex website (mxml)? Thanks ...

Generating Powerpoint PPT with Coldfusion?

Hi all, Does anyone know if it's possible to generate powerpoint ppts within ColdFusion? I can't rely on the approach of installing a copy of office and generate one through COM and I can't use ooxml since my client is still in the office 2003 era. Any suggestion is much appreciated. ...

IIS AppPool error (1013 - W3SVC)

We're getting a number of warnings in the Event Viewer on our IIS installation. We have an AppPool set up which contains two websites (both ColdFusion sites, not .NET). The Event Viewer shows the following warning: A process serving application pool 'HighPriorityApps' exceeded time limits during shut down. The process id was '175540'. ...

ColdFusion Exception help: coldfusion.runtime.NoOperScope cannot be cast to coldfusion.runtime.ApplicationScope

I am encountering an exception cause by the CFINVOKEARGUMENT line of the following snippet: <CFOUTPUT query="cfmx.Messages"><CFSILENT> <CFINVOKE component="com_VUI_RemoveIllegalChars" method="formatString" returnvariable="cfmx.formattedMessage"> <CFINVOKEARGUMENT name="inString" value="#TTSText#"> </CFINVOKE> </CFSILENT> The exact ...

Why did the designers of Coldfusion decide to index arrays from 1 rather than 0?

Hi all I'm just curious about this really, does anyone know why they broke convention on this one? Thanks, Ciaran ...

ColdFusion and getting data from MySQL

Hi All, I am working on a CF site and need to get data from MySQL tables. I can create the CFQuery fine and check for records returned, but how do I take the records returned and loop through them and get data from specific fields in each row. I can write while if/end if, etc, I just dont recall how to get access to the data. -JAson ...

Fixing DB Inconsistencies - ID Fields

I've inherited a (Microsoft?) SQL database that wasn't very pristine in its original state. There are still some very strange things in it that I'm trying to fix - one of them is inconsistent ID entries. In the accounts table, each entry has a number called accountID, which is referenced in several other tables (notes, equipment, etc. ...

remoteObject Fails After Recompiling Using CF8

I've been handed a Flex project that was originally built and compiled using Flex3 and CF7. My setup is Flex3 with CF8. Everything works fine when I initially pull the project over but as soon as I recompile, remote calls to the CFCs begin to fail. I used Charles Web Proxy debugger and discovered that the failure appears to begin with...

ColdFusion RDS and NTLM Integrated Authentication Problem

I can't seem to get the magic combination of enabling NTLM authentication and still having RDS work. If I leave just anonymous authentication on, RDS works fine - as soon as I enabled it site wide, RDS fails (which is to be expected). Here is what I have done: This is Windows XP SP2 and ColdFusion 8, Eclipse + Adobe plugins In the IIS ...

Coldfusion WSDL times out on first call

I have a web service setup for on a small part of a website and while the site overall gets a good amount of traffic this particular service does not. Once a day when I go to send a request through the web service it will fail on the first attempt, but retrying the request a second time works just fine. It's as if it was no longer cach...

How can I use query-of-query UNION on n-recordsets when var scoping is needed?

I would like to be able to do a query of a query to UNION an unknown number of recordset. However when doing a query-of-query dots or brackets are not allowed in record set names. For example this fails: <cfquery name="allRecs" dbtype="query"> SELECT * FROM recordset[1] UNION SELECT * FROM recordset[2] </cfquery> Using dy...

Performing Optical Character Recognition on PDF's from Coldfusion using a Java or .NET Library?

I am looking to take a PDF and extract any text from it. I then want to make it available using Coldfusion's available Verity search to search the contents. Are there any libraries out there that do this quite well already? I am including Java or .NET (Java prefered) libraries in the scope since they can be called from CF. Any insigh...