cfml Questions

3

Solved

How can I convert a ColdFusion date to Unix Timestamp? myDate = DateAdd("m", -1, Now()); I would like to convert myDate to unix timestamp using ColdFusion Thanks
Bonkers asked 19/8, 2019 at 17:42

1

I have a web page that you log into which then creates a session variable that’s checked on all subsequent page accesses and if it doesn’t exist or doesn’t match whats recorded against the session ...
Apeldoorn asked 1/12, 2017 at 10:44

1

Solved

Given e.g. of the Pseudo Constructor in CFML: component{ // Pseudo Constructor start ... here comes some cfml scripting code.. // Pseudo Constructor end function init(){ return this; } ...
Overhang asked 16/12, 2021 at 11:15

5

Solved

I'm trying to convert an Application.cfc to script. The original had this: <cfcomponent displayname="Application" output="false"> <cfset this.name = "testing"> <cfset this.applica...
Orbit asked 8/11, 2011 at 18:50

6

Solved

(This is a coldfusion question) I've got two different Structs that may or may not contain the same data, and I want to be able to see if they do! My Structs will always contain simple values (Num...
Reddick asked 30/6, 2010 at 7:13

1

I'd like to initiate some logging of requests and, more importantly, queries within my application. Lucee makes this pretty easy, and I'm able to log all queries within any given page run with a fe...
Rambort asked 15/11, 2020 at 0:20

3

Solved

To avoid nested if-statements and to improve readability, I wanted to create a switch(true){ ... } statement in Coldfusion. I used this often in php, but when I try this in Coldfusion, I get the fo...
Raptorial asked 20/11, 2015 at 10:43

9

Solved

Is there a built-in way to join two arrays in ColdFusion, similar to JavaScript's array.concat()?
Shrunk asked 21/6, 2010 at 2:8

6

Solved

I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor. ...
Estes asked 16/11, 2010 at 13:59

1

Solved

In this example, I have a model object called test.cfc which has a dependency testService.cfc. test has WireBox inject testService through a property declaration. The object looks like this: comp...
Fabrikoid asked 8/11, 2018 at 18:56

2

Solved

I'm stuck and need a fresh set of eyes on this, please. I'm working with someone else's spaghetti code who is no longer around and having a heck of a time figuring out what they were evaluating. ...
Lyre asked 9/2, 2018 at 3:41

2

Solved

Anytime that I use serializeJSON in cf9 the JSON it returns is prepended with '//'. This is pretty frustrating because even coldfusion will throw an error trying to decode that as json. For example...
Magnetoelectricity asked 10/6, 2015 at 14:37

1

Solved

In PHP I could have this situation: <?php class Person { public $firstName; public $lastName; function __construct($firstName, $lastName) { $this->firstName = $firstName; $this->l...
Statis asked 28/7, 2017 at 18:40

2

Solved

I am facing issue with a piece of code, with slight modification I am getting different results which should not be the case. Version 1 is giving the correct results, I am facing issue with Versio...
Moulin asked 29/6, 2017 at 8:37

3

Solved

I have the code below inside of a loop so as the loop iterates I'm setting a dynamic variable temp to the value of the getAdvisor_Advisors.advisor_ID for the current loop iteration. <cfset tem...
Belonging asked 17/5, 2017 at 13:39

2

I'm creating PDFs in ColdFusion using cfdocument. I need to make a table with the header row slanted so it all fits on the page. Here's an example of what I'm trying to accomplish. None of the HTML...
Maddening asked 12/4, 2017 at 23:16

8

Solved

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 &lt...
Seemly asked 31/7, 2009 at 13:31

4

Solved

<cfscript> Workbook = Spreadsheetnew("Workbook"); SpreadSheetSetCellValue(WorkBook, "4D", 1, 1); // displayed 4 SpreadSheetSetCellValue(WorkBook, "4C", 1, 2); // displayed 4C SpreadSheetSetCe...
Maisonette asked 21/3, 2013 at 17:2

1

Solved

I just installed ColdFusion 2016 (upgraded from CF10) and I noticed that whenever I try and access a folder in my webroot called 'api', I get an internal 500 error. For example: www.mysite.com/api...
Perot asked 6/10, 2016 at 18:17

3

Which active CFML based frameworks are available for ColdFusion / Lucee? Please note: This is a community wiki Q&A as it is a question that comes up quite a lot.
Acreage asked 24/8, 2016 at 16:11

3

Solved

I have a JSON variable output from a jQuery application as so: [{"id":1}, {"id":197,"children":[{"id":198},{"id":199},{"id":200}]}, {"id":2,"children":[{"id":3},{"id":4},{"id":143},{"id":6},{"id":...
Dartmouth asked 2/4, 2013 at 21:45

7

Solved

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> ... <cf...
Laughable asked 19/5, 2009 at 15:52

6

Solved

Before going into production, our client demands actual numbers of how many users our web application can handle. We have all kinds of features implemented including asset management (file u...
Undertake asked 7/5, 2010 at 19:22

13

Solved

I'm using ColdFusion to populate a template that includes HTML unordered lists (<ul>s). Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be ...
Lovelovebird asked 7/8, 2008 at 16:30

3

In the midday the IIS server was just running fine, when I restarted it shows me this error Service Temporary Unavailable! The server is temporarily unable to service your request due to main...
Chessman asked 21/10, 2014 at 15:46

© 2022 - 2024 — McMap. All rights reserved.