Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [cfml]

CFML is the main scripting language for the ColdFusion web application platform. In addition to Adobe's ColdFusion server, CFML code can also run on the JVM, the .NET framework, Google App Engine, Railo, New Atlanta BlueDragon, and Open BlueDragon. Use this tag for code written in CFML, and add other tags for the targeted platform if applicable.

Filter by
Sorted by
Tagged with
1 vote
1 answer
266 views

Creating CAPTCHA in ColdFusion then showing image in Vue.js

I am trying to create a CAPTCHA image on ColdFusion. ColdFusion will be producing REST services and hence will have to push the image via JSON. I want the image to be self contained. I don't want to ...
James A Mohler's user avatar
1 vote
1 answer
127 views

Select to pick quarter (date)

An includable select to pick the first day of quarter: ...
gordon's user avatar
  • 133
5 votes
2 answers
154 views

Filtering the attributes for a custom tag

I have function that takes all of the attributes passed to a custom tag, and returns a select subset. I am try to convert the current function, which does not use closures ...
James A Mohler's user avatar
0 votes
2 answers
152 views

ListFind test conditions

I am considering ...
James A Mohler's user avatar
2 votes
1 answer
435 views

Submitting form using dynamic variable with query

I have a form that I submit with these variables: category_time, date_month, date_year, and <...
anatp_123's user avatar
  • 145
1 vote
1 answer
90 views

Updating a .txt file

I'm outputting the results of a query to file.txt in JSON. The file is updated every time I click on 'submit'(form) and depending on the variables it updates the query. Right now the table only has ...
anatp_123's user avatar
  • 145
2 votes
0 answers
56 views

CF/jQ server-side session struct to replace hidden inputs

I have inherited a legacy ColdFusion app with gobs of <input type="hidden"> fields, and a user finally may have used F12/Inspect Element to submit a ...
gordon's user avatar
  • 133
3 votes
1 answer
99 views

Dump of ColdFusion cache

I am trying to give show a UI friendly dump of the cache status ...
James A Mohler's user avatar
4 votes
3 answers
121 views

Optimizing name highlighting

I have created a set of functions, that when given a struct of structs full of names, it will highlight those names that appear in a body of HTML based text. Is this the best method of doing this? <...
Jarede's user avatar
  • 309
3 votes
1 answer
1k views

Insert an SQL Server Table rows into a Bigquery table in one bloc

I want to insert all rows of an SQL server Table into a BigQuery Table having the same schema. The streaming insert row by row is very slow: to insert 1000 rows the execution of the code below took ...
user3569267's user avatar
2 votes
0 answers
379 views

Insert all SQL Server table rows in a Google BigQuery Table

I want to know the best way (best performance and reaction time) to insert all rows of an SQL table into a Google BigQuery table. Actually, I am looping over a query result and insert the rows one by ...
user3569267's user avatar
4 votes
0 answers
277 views

Calculating player ratings

Below I have two players that win or lose and their score fluctuates using the Elo function. I have adapted this code from something closer to my language which is ActionScript. I found the functions ...
Frank Tudor's user avatar
2 votes
1 answer
462 views

Storing arbitrary form data in SQL as an XML blob

I am currently storing form data in an XML format: ...
James A Mohler's user avatar
3 votes
0 answers
96 views

Quick 'n' dirty job deferment

I'm just after some sanity checking of this code: ...
Adam Cameron's user avatar
2 votes
1 answer
765 views

Reading Excel (93-97) sheet with more than 65536 rows using cfspreadsheet

I have a process that reads multiple sheets from an Excel file, then inserts the data into a database table. However, I am experiencing some memory issues when one of the sheets contains more than ...
Fransis's user avatar
  • 21
0 votes
1 answer
278 views

How to store and access translated language text pieces?

We are working to translate our site into different languages. Currently, we pull 80% of a page from a database that is already translated. We drop in a language id and output the appropriate content. ...
Evik James's user avatar
4 votes
2 answers
315 views

CFML implementation of Array.reduce()

G'day Just before I submit this to CFLib, it'd be great to get feedback: ...
Adam Cameron's user avatar
2 votes
1 answer
150 views

Running a master query and a query of queries

The following is code I'm running to FIRST, SECOND, THIRD and so on until ...
Tan's user avatar
  • 243
6 votes
1 answer
164 views

replaceWithCallback() UDF

As explained in my blog article… I was looking up the docs for Javascript's String replace() function the other day (because, no, I could not remember the vagaries of its syntax!). And whilst ...
Adam Cameron's user avatar
0 votes
1 answer
226 views

Bitwise Logic optimization

I should be able to figure this out on my own, but I can't seem to wrap my head around how to optimize this set of logic for interpreting the existence of URL parameters. ...
Jason Bristol's user avatar
2 votes
2 answers
180 views

Open source CFML database project

I just posted a small open source CFML project here db.cfc is a standalone CFC with 472 lines of code. Here is the execute function in db.cfc. This is just a partial example pulled from the 400+ ...
Bruce Kirkpatrick's user avatar
2 votes
1 answer
144 views

Image transfer script

How can I optimize this? ...
user22818's user avatar
3 votes
1 answer
230 views

Setting a page number from the URL, with fallbacks

I have the following code, but it somehow looks a bit redundant. As I am new to ColdFusion, I am not sure how to optimize it. Can someone suggest an alternative? ...
user160820's user avatar
2 votes
2 answers
627 views

Loading site configuration from ini file

I load in static setting via an ini file. Ini file have the benefits of NOT being server by most web servers by default. easier to edit than XML even simplier than JSON Setting get loaded in ...
James A Mohler's user avatar
2 votes
4 answers
8k views

A couple of basic string parsing functions

I have an app that does a fair bit of text-parsing based on free-form user inputs. In this, I run searches on the whole string, and then on the last value of the string separate from the rest of the ...
Sharondio's user avatar
  • 121
2 votes
3 answers
2k views

Simple function to turn array of objects to array of key value pairs

I have an application that has a lot of very complex objects that in most cases I only need to access an id value and a name value from. I'd like to reduce the overhead of serializing these large ...
bittersweetryan's user avatar
4 votes
2 answers
443 views

Should I treat direct CFC Calls differently than Page Requests?

Should I leave in <cfif reFindNoCase( "\.cfc$" , targetPage ) eq 0> or not? Direct CFC calls are flushed when the method returns. Either way, ...
Bradley Moore's user avatar
4 votes
1 answer
1k views

Uploading multiple files for faculty nomination system

I created a few forms for faculty members to nominate colleagues for awards. Many of the nominations require documentation to be submitted in order to validate the nomination. I created one form then ...
aparker81's user avatar