coldfusion

CFHTTP: find out supported version of SSL & test auth.net with SSL 3.0

Hello, recently received email from Authorize.net saying: During the week of March 16 - 20, 2009, Authorize.Net will be deprecating all legacy support for the SSL 2.0 protocol. Changes have recently been made to the Payment Card Industry Data Security Standard (PCI DSS) which have made the use of SSL 2.0 a PCI DSS viola...

Can a ColdFusion cfc method determine its own name?

I am creating an API, and within each method I make a call to a logging method for auditing and troubleshooting. Something like: <cffunction name="isUsernameAvailable"> <cfset logAccess(request.userid,"isUsernameAvailable")> ...... </cffunction> I'd like to avoid manually repeating the method name. Is there a way to programa...

How do you see the client-side URL in ColdFusion?

Let's say, on a coldfusion site, that the user has navigated to http://www.example.com/sub1/ The server-side code typically used to tell you what URL the user is at, looks like: http://#cgi.server_name##cgi.script_name#?#cgi.query_string# however, "cgi.script_name" automatically includes the default cfm file for that folder- eg, that ...

Call a ColdFusion function on another server?

I have a Java class I have to run, my current web host (shared) will not allow Java. I need to host it on another server. I was told I can't call Java from ColdFusion on a separate server, but what if I call a CF function on the 2nd server then have that function call the Java class, return the data to CF then that function go back to ...

ColdFusion.navigate alternative?

In another question, "Using Google Map with ColdFusion", I ran into a problem of not able to display a google map using CF. After much experimenting, I found out that if you use ColdFusion.navigate to point to a page from one cflayoutarea to another cflayoutarea, the map in the destination cflayoutarea would not show. (However, if you ju...

Setting up a Reporting Server to liberate resource from a webserver.

Hi everyone, Yay, first post on SO! (Good work Jeff et al.) We're trying to solve a bottleneck in one of our web-applications that was introduced when we started allowing users to generate reports on-demand. Our infrastructure is as follows: 1 server acting as a Webserver/DBServer (ColdFusion 7 and MSSQL 2005) It's serving a web-appl...

MySQL / Coldfusion 8 : sql-mode

We've been doing some testing with Coldfusion and MySQL and are a bit puzzled. We know that there are different 'sql-mode' flags you can set in the /etc/my.cnf file which will cause MySQL to behave certain ways, depending on the modes defined. We know you can also set these flags whenever starting MySQL using '--sql-mode=' flags. In /et...

Value missing from form.fieldnames in ColdFusion

I must be losing my mind. <cfif cgi.request_method eq "POST"> <cfoutput> Form.fieldnames = #form.fieldnames#<br> structKeyList(form) = #structKeyList(form)# </cfoutput> </cfif> <form method="post" accept-charset="utf-8"> <input type="text" name="graduation_date" value="x"><br> <input type="text" name="foo" v...

Coldfusion Verity search is getting confused by & in an collected field to be searched + located.

I tried looking for an example of getting around this but had no luck. Hopefully someone can point me in the right direction! I have a Verity Collection. The description field of a record has a title, such as "Flowers & Candy Scented Candle" When I type "Flowers & Candy" into a search, it returns no results. If I type in just the ...

Recognize Missing Space

How can I recognize when a user has missed a space when entering a search term? For example, if the user enters "usbcable", I want to search for "usb cable". I'm doing a REGEX search in MySQL to match full words. I have a table with every term used in a search, so I know that "usb" and "cable" are valid terms. Is there a way to constru...

What's the most efficient way to find the length of the longest item in a list?

Given a list of assorted length words, what is the best way to find the maximum length of any words? For example, the following should return 6 findMaxLen("a,set,of,random,words") Of course, it's fairly trivial to do this... <cffunction name="findMaxLen" returntype="Numeric"> <cfset var CurMax = 0 /> <cfset var CurItem = 0...

Why don't people use <CFLOGIN>?

Why don't people use CFLOGIN? I remember having problem with it with CF7 some months ago, but I couldn't remember what was wrong with it. ...

Coldfusion - cfquery not returning correct data

I am having a hard time figuring out why when the cfquery runs in my code it is only returning one row when it should be returning three rows. In almost all cases this cfquery is returning the correct data. For one or two users the cfquery is returning only 1 row (out of 3). I take the output from the debug info that coldfusion spits o...

Calculate the Last Day in the CURRENT quarter

What's the most efficient way to calculate the last day of the CURRENT quarter? Example: given the date 3/5/09, I want to return 3/31/09. Platform is ColdFusion and SQL Server ...

Individual Parameters or Build Where Clause

I'm building an object to search orders in my database. There are a bunch of possible parameters that the user can set, and they can set as many as then want for each search. I've created setter methods to collect all the parameters needed for the search. My question is this. What would be "best practice" Storing the parameters, and b...

Collection of ColdFusion CFC Best/Recommended Practices?

I have been building a list of CFC best practices to share. There are a numerous of articles out there but I thought it might be neat to get any tricks and tips together here in one place that have been learnt through experience. I'll add a few links here to get it going but I think the best thing would be not long articles that can be...

How do you organize your small reusable cffunctions?

I am reorganizing my Coldfusion directory structures and am curious about how experienced CF developers are organizing libraries of smaller cffunctions. I am not as curious about elaborate components (objects) as I am about the dozens of little utility functions we all build up over time. Do you use a large single file with cffunction...

Sending mail with Coldfusion CFMAIL with no local smtp server

I am using a shared Coldfusion host (Crystaltech) but am using google domain mail for my email needs. When I use CFMAIL to send mail from this server, I tried using gmail's smtp. It however rewrites any from address I specify to the gmail account I'm using for smtp. I've heard others talk of using Yahoo. Anybody have any good solutio...

flex: Save an editable datagrid via a cfc

Hi I have an editable datagrid which i need to be able to save with other form fields via a cfc in coldfusion. Basically the aim is that there are a number of locations retrieved via an RO which make up the first column the remaining columns are types of data i.e. demographics, client notes, appointments etc, the idea is that the user...

ColdFusion Error: coldfusion.compiler.FactoredNodeAggregation cannot be cast to coldfusion.compiler.ASTfunctionDefinition

coldfusion.compiler.FactoredNodeAggregation cannot be cast to coldfusion.compiler.ASTfunctionDefinition I get the above error when attempting to replace a really, really old legacy custom tag with a new custom tag that has some substantial workflow improvements. I only have one idea on how to debug this: comment out different parts ...