coldfusion

ColdFusion Export to Excel on Multiple Sheets

☆樱花仙子☆ 提交于 2020-01-05 07:27:11
问题 I'm using the code below to export data from a database to an Excel sheet. What I want to do is have a certain set of fields be exported to a different sheet in the same workbook. The end result being that each person's data is on a separate sheet rather than all combined on the same sheet like this code is doing. Any thoughts as to how I can write a formula or a piece of ColdFusion than will let me do this? Also I'm using ColdFusion 8 so I can't use the cfspreadsheet function. <!--- use

Append to JSON array with ColdFusion, taking Null values into consideration?

与世无争的帅哥 提交于 2020-01-05 04:50:37
问题 I have been digging here on Stack for some time but I do not believe my brain is getting the hint on how to do this. I need this JSON: '{"loginHosts":["server1.example.com","server2.example.com"],"sudoHosts":["server1.example.com","server2.example.com"],"CPG":"my_group","mail":"test@example.com","loginShell":"/bin/bash"}' To look like this JSON: '{"loginHosts":["server1.example.com","server2.example.com","newserver1.example.com","newserver2.example.com"],"sudoHosts":["server1.example.com",

Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404

荒凉一梦 提交于 2020-01-04 14:21:23
问题 I'm setting up a new server (CF10 W2K8) going by Pete Freitag's new CF10 lockdown guide. I have a test site installed and if I bring up www.mydomain.com it loads the default document (index.cfm) just fine. However, if I try www.mydomain.com/index.cfm (or any other specific .cfm page), I get a 404 not found. IIS logs do record a 404 error. If I create a .htm/.html page it comes up fine. 回答1: I had this problem as well. Running on Windows Server 2008 R2. I found some threads that suggested that

Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404

▼魔方 西西 提交于 2020-01-04 14:21:15
问题 I'm setting up a new server (CF10 W2K8) going by Pete Freitag's new CF10 lockdown guide. I have a test site installed and if I bring up www.mydomain.com it loads the default document (index.cfm) just fine. However, if I try www.mydomain.com/index.cfm (or any other specific .cfm page), I get a 404 not found. IIS logs do record a 404 error. If I create a .htm/.html page it comes up fine. 回答1: I had this problem as well. Running on Windows Server 2008 R2. I found some threads that suggested that

Problems determining a file's mime type in ColdFusion

别来无恙 提交于 2020-01-04 13:46:06
问题 When I try to determine a file's mime type with getPageContext().getServletContext().getMimeType() , it returns undefined if the extension is in uppercase (e.g., image.JPG ). Has anyone run into this before? I know there is FileGetMimeType , but that gives me another set of issues within the codebase in which I'm working. I am running ColdFusion 10. 回答1: This appears to be a regression in ColdFusion 10 (it works fine on CF9). I'd go through the motions of raising a bug, but Adobe will more

Calling a CFC function in AJAX/JQuery

£可爱£侵袭症+ 提交于 2020-01-04 12:19:11
问题 I would like to call a cfc function that I created that will take an input, and based on that input, mark a bit field on a MSSQL database. It's something I'm not too familiar with, but looks something like this. Agendalist CFC <cffunction name="iTalked"> <cfargument name="SpeakerName" required="true" type="string"> <cfquery name="iTalked" datasource="SpeakerCard"> UPDATE tbl_SpeakerCard_Log SET Spoken = 1 WHERE SpeakerName = '#SpeakerName#' </cfquery> <cfreturn iTalked> </cffunction> AJAX

Calling a CFC function in AJAX/JQuery

陌路散爱 提交于 2020-01-04 12:18:29
问题 I would like to call a cfc function that I created that will take an input, and based on that input, mark a bit field on a MSSQL database. It's something I'm not too familiar with, but looks something like this. Agendalist CFC <cffunction name="iTalked"> <cfargument name="SpeakerName" required="true" type="string"> <cfquery name="iTalked" datasource="SpeakerCard"> UPDATE tbl_SpeakerCard_Log SET Spoken = 1 WHERE SpeakerName = '#SpeakerName#' </cfquery> <cfreturn iTalked> </cffunction> AJAX

For HTML Emails, How to embed images so users don't get a download prompt

你。 提交于 2020-01-04 11:07:09
问题 I'm working to create an HTML email which includes 2 images. Currently, I'm using tags to place the image in the email. Problem is when users get the email, it's asking the user to "click to download" for security reasons. Is there a way to embed the image in the email, to avoid this issue? I'm using Coldfusion to send the email. Thanks 回答1: I haven't tested if this works in e-mail clients, but if you encode the image as Base64 you can include it in the HTML, which avoids the issue of

For HTML Emails, How to embed images so users don't get a download prompt

有些话、适合烂在心里 提交于 2020-01-04 11:06:44
问题 I'm working to create an HTML email which includes 2 images. Currently, I'm using tags to place the image in the email. Problem is when users get the email, it's asking the user to "click to download" for security reasons. Is there a way to embed the image in the email, to avoid this issue? I'm using Coldfusion to send the email. Thanks 回答1: I haven't tested if this works in e-mail clients, but if you encode the image as Base64 you can include it in the HTML, which avoids the issue of

For HTML Emails, How to embed images so users don't get a download prompt

杀马特。学长 韩版系。学妹 提交于 2020-01-04 11:06:09
问题 I'm working to create an HTML email which includes 2 images. Currently, I'm using tags to place the image in the email. Problem is when users get the email, it's asking the user to "click to download" for security reasons. Is there a way to embed the image in the email, to avoid this issue? I'm using Coldfusion to send the email. Thanks 回答1: I haven't tested if this works in e-mail clients, but if you encode the image as Base64 you can include it in the HTML, which avoids the issue of