Skip to main content
Filter by
Sorted by
Tagged with
4784 votes
9 answers
949k views

How to pass "Null" (a real surname!) to a SOAP web service in ActionScript 3

We have an employee whose surname is Null. Our employee lookup application is killed when that last name is used as the search term (which happens to be quite often now). The error received is: <...
bill's user avatar
  • 27.1k
68 votes
2 answers
73k views

$.ajax context option

Episode 11 of the yayQuery podcast mentions the $.ajax context option. How would I use this option in the success callback? What I'm currently doing is passing my input parameters back to the success ...
Phillip Senn's user avatar
  • 47.4k
57 votes
2 answers
206k views

Ignore SSL Certificate Error with Wget

I have the following code in my coldfusion code that works: <cfexecute name="curl" arguments = "https://myPath/myFile.xlsx -k" timeout="10" variable="test" /> <cfdump var="#test#" /> ...
froadie's user avatar
  • 82.3k
52 votes
9 answers
212k views

Keytool is not recognized as an internal or external command

I am trying to discover the list of trusted authorities in my Java Runtime using the instructions in this article. When I typed the command below: C:\ColdFusion8\runtime\jre\lib>keytool -list -...
Jack's user avatar
  • 1,079
42 votes
7 answers
224k views

How can I create a blank/hardcoded column in a sql query?

I want have a query with a column that is a hardcoded value not from a table, can this be done? I need it basically as a placeholder that I am going to come back to later and fill in. example: ...
tylercomp's user avatar
  • 891
41 votes
3 answers
1k views

How to reload printers in coldfusion without restarting service?

This is my basic understanding of how to make a printer available to use in ColdFusion. Remote into the server running CF using the account that the CF service is running under. Open the windows ...
jessieloo's user avatar
  • 1,852
40 votes
10 answers
21k views

Picking a ColdFusion MVC Framework [closed]

I am taking over a lot of the ColdFusion stuff that is lingering at our shop and they are insistent it stay on ColdFusion and that new projects in this area MUST be done in CF - basically this part is ...
naspinski's user avatar
  • 34.5k
39 votes
8 answers
60k views

Is there a way to 'listen' for a database event and update a page in real time?

I'm looking for a way to create a simple HTML table that can be updated in real-time upon a database change event; specifically a new record added. In other words, think of it like an executive ...
AngeloS's user avatar
  • 5,576
38 votes
1 answer
25k views

Once grammar is complete, what's the best way to walk an ANTLR v4 tree?

Goal I'm working on a project to create a Varscoper for Coldfusion CFscript. Basically, this means checking through source code files to ensure that developers have properly var'd their variables. ...
Owen Allen's user avatar
  • 11.8k
38 votes
2 answers
959 views

JavaScript Error when using Flash Forms in ColdFusion 9

I'm having a problem with Flash Forms on ColdFusion 9 that worked perfectly under ColdFusion 8. When viewing the flash form in the browser, the form elements themselves display correctly, but the data ...
Dan Short's user avatar
  • 9,606
37 votes
8 answers
69k views

Can I get a query row by index in ColdFusion?

I want to get a specific row in a ColdFusion Query object without looping over it. I'd like to do something like this: <cfquery name="QueryName" datasource="ds"> SELECT * FROM tablename <...
Brian Bolton's user avatar
  • 3,642
37 votes
7 answers
49k views

How can I write a newline in a string in ColdFusion?

Currently I'm putting newlines in strings through one of these two methods: <cfset someStr="This is line 1" & Chr(10) & "This is line 2" & Chr(10) & "This is line 3" /> OR <...
Kip's user avatar
  • 109k
36 votes
9 answers
22k views

Join Two Arrays in ColdFusion

Is there a built-in way to join two arrays in ColdFusion, similar to JavaScript's array.concat()?
Yisroel's user avatar
  • 8,174
36 votes
3 answers
12k views

Lose EF Code First Migration when working on different TFS branches?

We are using TFS and have different branches for our Dev. in the branch A we made a migration to change a column size in the branch B we made a migration to add a new table. This branch doesn not ...
bouh's user avatar
  • 536
33 votes
2 answers
3k views

ColdFusion SOAP response with attachments

I am using Coldfusion9 to interact with a 3rd party SOAP service with which I need to both send and receive SOAP with attachments. I am having no issue in receiving the SOAP which may or may not have ...
Phil Rasmussen's user avatar
32 votes
2 answers
31k views

MySQL data type: Text,,, Erroring: Data Too Long

I have a field as follows in MySQL: Type: Text Length: 0 Decimals: 0 And when I try to insert data around the size of 4 pages of MS Word, Coldfusion errors with: Data Too Long from the DB. I ...
AnApprentice's user avatar
31 votes
3 answers
98k views

How do I concatenate two strings and store them into the same struct key

I'm using Coldfusion. I want to concatenate two strings into the same struct key, but I keep getting an error of "can't convert x into a boolean." For example: <cfset myStruct.string1 = nodes[1]....
Mohamad's user avatar
  • 35.2k
30 votes
5 answers
4k views

How to get started writing a code coverage tool? [closed]

Looking for books or other references that discuss actually how to write a code coverage tool in Java; some of the various techniques or tricks - source vs. byte code instrumentation. This is for a ...
user avatar
29 votes
7 answers
33k views

How to do a cfdump inside a cfscript tag?

In order to debug I would like to dump certain variables on to my web page. How can I do that from inside a cfscript tag? I tried the following but it isn't working: <cfscript> ... <...
Arnkrishn's user avatar
  • 30.2k
28 votes
2 answers
11k views

cfqueryparam with like operator in ColdFusion

I have been tasked with going through a number of ColdFusion sites that have recently been the subject of a rather nasty SQL Injection attack. Basically my work involves adding <cfqueryparam> tags ...
Doug R's user avatar
  • 5,769
28 votes
1 answer
1k views

Why does 0.06 + 0.01 = 0.07 in ColdFusion?

Why don't math operations in ColdFusion seem to be affected by floating point math issues? Take the code: result = 0.06 + 0.01; writedump(result); writedump(result.getClass().getName()); Which ...
bittersweetryan's user avatar
27 votes
3 answers
33k views

ColdFusion: Get variable type

The ColdFusion <cfdump /> tag is giving me much less information than the PHP function var_dump(). Is there any other possibility in CF to find out of what type (integer, string etc.) my ...
Dollique's user avatar
  • 1,012
27 votes
4 answers
10k views

Things to watch out for in ColdFusion 9 with CF-ORM

What are some of the things you've observed in ColdFusion 9 with CF-ORM (Hibernate) that one should watch out for?
26 votes
2 answers
60k views

How to convert a string representation of a number to a number in coldfusion?

I want to be able to convert a string number such as "1,427.76" to a number in coldfusion but the comma is making it fail. Is there a simple way to do it besides having to remove the comma? <...
Scott Chantry's user avatar
26 votes
4 answers
4k views

Are ColdFusion objects passed by reference or by value?

Are ColdFusion objects (i.e. CFCs invoked via cfobject) normally passed by reference or by value (copied in memory)? And is it possible to force ColdFusion to pass an object in either manner?
Soldarnal's user avatar
  • 7,728
24 votes
1 answer
2k views

Upload Files To Google Drive Using ColdFusion

*NEW UPDATED FOR BETTER SECOND PART - NOW GETS TO "308 Resume Incomplete", even though file should be just one upload! I am using the foundation of cfgoogle from Ray Camden. But Google has ...
user avatar
23 votes
8 answers
20k views

restart application without restarting server?

Is there a way to restart a ColdFusion application without restarting the entire server? There are two ColdFusion applications running on a server and I only want to restart one of them.
dmr's user avatar
  • 22.2k
23 votes
8 answers
38k views

ColdFusion https connection failure

I have an API that runs fine on one of my two web servers but not on the other one or on my local machine, instead I get a connection failure when I send https requests as part the login process. The ...
CPB07's user avatar
  • 699
22 votes
3 answers
48k views

How to convert Query column to a list in ColdFusion

I'm trying to convert ColdFusion query column to a list, what is the best way to do so? I thought that there is a built in function that allows one to easily convert a query's column in to a list, if ...
erikvold's user avatar
  • 16.4k
22 votes
2 answers
8k views

ColdFusion: More efficient structKeyExists() instead of isDefined()

Which of these is more efficient in ColdFusion? isDefined('url.myvar') or structKeyExists(url, 'myvar')
James T's user avatar
  • 3,310
22 votes
2 answers
10k views

What Response Should Be Sent Back a When Cross-Site Request Forgery (CSRF) is Detected

What response should I send back when a Cross-Site Request Forgery (CSRF) is detected? There is a scanning tool which I cannot get a hold of that is saying one of my pages is not protected against ...
gfrobenius's user avatar
  • 4,047
22 votes
1 answer
18k views

Coldfusion 10, IIS 7.5 - Getting a 404 even though file exists

I'm getting a 404 even though the page exists on disk. I've ran the Web Server Configuration Tool and rebooted several times. Handler mapping for .cfm files (configuration tool seems to have worked)...
TechFanDan's user avatar
  • 3,442
20 votes
7 answers
31k views

How can I get the SQL from a query object in ColdFusion?

How can I get the SQL used to generate a cfquery object? If I cfdump the object, it shows it having an "SQL" property, which contains the actual query. Turning on debugging won't help me because I ...
Kip's user avatar
  • 109k
20 votes
4 answers
55k views

How to check for a null value from the return value in ColdFusion query loop

<cfloop query="GET_ALL_STUDENTS> <cfif #student_id# is NOT NULL> <!--- do something---> </cfif> </cfloop> Above is how I am looping my cf query which returns null ...
Evlikosh Dawark's user avatar
20 votes
10 answers
22k views

How to sort an array of structs in ColdFusion

I have an array of structs in ColdFusion. I'd like to sort this array based on one of the attributes in the structs. How can I achieve this? I've found the StructSort function, but it takes a ...
Kip's user avatar
  • 109k
20 votes
1 answer
4k views

Why is ColdFusion adding whitespace when I call a function in cfoutput?

If I do something like this in ColdFusion: <cfoutput>foo="#foo()#"</cfoutput> The resulting HTML has a space in front of it: foo=" BAR" However, if it is not a function call it works ...
Kip's user avatar
  • 109k
19 votes
2 answers
24k views

How to get POST data in ColdFusion

How do you get values from a POST request in ColdFusion? Figured the hard way that POST.id doesn't work like URL.id.
IzzyCooper's user avatar
19 votes
3 answers
11k views

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

We're trying to build a dashboard for our cron 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 ...
Chris Brandt's user avatar
19 votes
3 answers
25k views

Are MD5 hashes always either capital or lowercase?

I'm passing an HMAC-MD5 encoded parameter into a form and the vendor is returning it as invalid. However, it matches what their hash generator gives me, with the exception of capitalization on the ...
Patrick's user avatar
  • 2,557
19 votes
2 answers
1k views

Coldfusion 10 slower when using Java 1.7 compared to 1.6

I have a webservice running on Coldfusion 10 64bit. While investigating a memory leak I went to upgrade the JRE from 1.6 to 1.7 but noticed a significant performance hit. I had created a simple test ...
Alan Bullpitt's user avatar
19 votes
1 answer
500 views

Switch to different XSLT Processor in ColdFusion

I am using two different versions of ColdFusion, ColdFusion 9 and ColdFusion 10, and there are different XSLT Processors in both. ColdFusion 9 is using Apache Xalan while ColdFusion 10 is using Saxon....
Abhishekh Gupta's user avatar
18 votes
4 answers
12k views

How to specify only some optional arguments when calling function in ColdFusion?

I have a ColdFusion function "foo" which takes three args, and the second two are optional: <cffunction name="foo" access="public" returntype="any"> <cfargument name="arg1" type="any" ...
Kip's user avatar
  • 109k
18 votes
5 answers
7k views

What's the ColdFusion 9 script syntax for cfsetting?

I'm trying to convert an Application.cfc to script. The original had this: <cfcomponent displayname="Application" output="false"> <cfset this.name = "testing"> <...
Micah Githens's user avatar
18 votes
7 answers
13k views

In ColdFusion, is there a way to determine what server the code is running on?

Is there any way in ColdFusion code to determine on what server the code is executing? I have few load-balanced ColdFusion servers. I want to be able to know on which server the code is running when I ...
Patrick McElhaney's user avatar
18 votes
8 answers
79k views

How to suppress the file corrupt warning at Excel download?

I have a web page which links to an Excel 2007 worksheet. It is a .xls file and not .xlsx file. When I click on the link I get the usual dialog box to either open/save the Excel file. On clicking '...
Arnkrishn's user avatar
  • 30.2k
18 votes
1 answer
9k views

How do I clear the coldfusion query cache without restarting the server?

I have several queries that I cache using the cachedwithin="#CreateTimespan(...)#" attribute of the cfquery tag. There are times when I need to clear the cache (or just re-execute the query to get a ...
Jake Feasel's user avatar
  • 16.9k
18 votes
2 answers
50k views

Coldfusion: How to split a string into a set of variables

I'm trying to teach myself ColdFusion. I have a string coming in from the database in this format: domain.com <br/> www.facebook.com/facebookpage <br/> http://instagram.com/...
Jack Pilowsky's user avatar
18 votes
3 answers
5k views

ColdFusion unit test frameworks

As a related sub-question - are there any CF unit test frameworks that support or make it easier to use mocks/stubs? The 2 that I spotted in a quick google that look the most promising are MXUnit and ...
jinglesthula's user avatar
  • 4,537
17 votes
6 answers
17k views

In Coldfusion, how do I init a component that is located above the current path folder?

If I have a folder structure that looks like this: / /bin/myComponent.cfc /reports/index.cfm How do I initiate myComponent.cfc from index.cfm? myService = createObject("component", "bin.myComponent"...
Dan Sorensen's user avatar
  • 11.7k
17 votes
5 answers
8k views

Prevent ColdFusion from converting string to number using SerializeJSON

I have ColdFusion 9.0.1 with the latest hotfix (4). I need ColdFusion to return all JSON data with quotes around them (as strings). I have the following problem: <cfset test = StructNew()> <...
Scott Chantry's user avatar

1
2 3 4 5
284