561 questions
0 votes
1 answer
87 views
Database field not returning correctly in cfm page
mySQL database table - "Listings" (Note: There are many other fields in this table, including date fields. I have abbreviated it for readability.) record_id title status --------...
0 votes
1 answer
44 views
Prefix tags in nested HTML
I need to prepare html for sending via the Postmark API. Given the following: <cfset vHTML = "<html><body><div>This is html</div></body></html>"> ...
0 votes
1 answer
48 views
HTML tags polluting JSON return in Firefox
I have the following abbreviated JSON returned from a file that gets trade categories for populating a select box. In Firefox, the following is how the JSON is returning [abbreviated]....{"id&...
0 votes
0 answers
158 views
is it possible to upgrade ColdFusion 11 to ColdFusion 2021?
I am new to ColdFusion. Due to the end of support for ColdFusion 11, we have been asked to upgrade to CF2021. We are currently running ColdFusion 11 on WebSphere Application Server 9.0.5. Is there any ...
-1 votes
2 answers
99 views
Can i dynamicaly set the session timeout per session?
I want to develop a keep me logged in today button for my login system. I want to do this without the use of cookies if possible. My first instinct was to change the session timeout based on this ...
1 vote
1 answer
121 views
ColdFusion round decimal value
<cfif (NOT IsNull(nt)) and (NOT IsNull(kt)) > <cfset ct= (nt * kt) / 100> <cfelse> <cfset ct= 00.00 > </cfif> let nt = 77 and kt = 13. ct will be 10.01. I want ...
0 votes
1 answer
383 views
JavaScript error Uncaught SyntaxError: missing ) after argument list when input value has both " and ' in it
I am migrating data from DOS dBASE IV to MySQL and I am building an input form using ColdFusion 11. My problem is, as an example, I have a field called 'size' and in it a value of " 2" X 2&...
2 votes
1 answer
192 views
A HEAD call to a CFC always returns a 500 (CF11)
I have certain processes running daily from third parties and it is not possible to change them. In short, these processes hit several of our CFCs with a simple HEAD type call. Those processes always ...
2 votes
0 answers
96 views
Coldfusion can't read IRS pdf form
Trying to first dump the fields, so that I can later populate the form after having known the field names. Error says "Either datafile XML or data XML contained in the PDF document is invalid. &...
1 vote
1 answer
230 views
Dependency Variable Doesnt Exist
Newbie in coldbox so please have patience with me. I am trying to implement TDD on my coldbox application. Under my service model I inject this dependency. property name="wirebox" inject=&...
1 vote
2 answers
270 views
Get array key and structure data from an array with structure
I've got an array that has a structure. Problem is that I can't output the array number and the structure data in the same loop, but if I have two different loops, the data will show without any ...
1 vote
1 answer
1k views
Coldfusion cfhttp multipartType - How do I send JSON and file in same request?
I'm up against an API that has very sparse documentation. I've tried everything (more below) but the end result is a response from the 3rd party server: The given path's format is not supported. Here ...
2 votes
1 answer
335 views
How do I accomplish nesting a loop iteration in a variable inside a loop in CFML
I am trying to loops through a json response in CFML, and need to do one call to get the number of pages, then a call for each successive page, then loop through items to get my data. In doing so I ...
0 votes
1 answer
94 views
How to toggle the case of individual words in sentences displayed in HTML form input boxes by double clicking them?
Double clicking a word in a sentence in an HTML form input box will highlight that word. I want each double click to toggle the case of the highlighted word between lower and upper case. <input ...
1 vote
1 answer
126 views
Coldfusion onRequestStart show some error
I try to write a onRequestStart function in application.cfc and code is function onRequestStart(requestname){ if(!structKeyExists(session, "UserId") or !structKeyExists(session, "...