coldfusion

How to replace all anchor tags with a different anchor using regex in ColdFusion

限于喜欢 提交于 2019-12-11 18:08:19
问题 I found a similar question here: Wrap URL within a string with a href tags using Coldfusion But what I want to do is replace tags with a slightly modified version AFTER the user has submitted it to the server. So here is some typical HTML text that the user will submit to the server: <p>Terminator Genisys is an upcoming 2015 American science fiction action film directed by Alan Taylor. You can find out more by <a href="http://www.imdb.com">clicking here</a></p> What I want to do is replace

How to display Distinct values in cfoutput

久未见 提交于 2019-12-11 18:07:12
问题 I have a query that returns results from the database. It returns duplicate information. I would like to prevent showing the duplicate data. What I mean by duplicate data is that the Admit Date , Service Date , and Discharge Date columns repeats the same data (in this case dates). So if the date is 10/05/2019, for Admit Date, it will repeat the date 2 or more times. This is due to the Process Date column where the process of submitting the inquiry were done in different dates and causes the

coldfusion file content no longer readable when we open the file in an editor

白昼怎懂夜的黑 提交于 2019-12-11 17:35:59
问题 My ColdFusion 11 app is working fine on my local machine ( Windows 10 ). But when I open any .cfm file in Eclipse or even in a Notepad , I get the content - such as the following - that is not readable. It was not happening before. How can I make the files readable again? UPDATE : The website is using IIS 10 on windows 10 . Could the above issue have something to do with IIS? I've noticed that when I open a copy of the same .cfm file from my backup folder I can read the file and the above

Writing a spreadsheet using CFspreadsheet to avoid error this file might be corrupted

南笙酒味 提交于 2019-12-11 17:32:02
问题 I am trying to figure out how to add my html table to a CFspreadsheet to show in excel. All the examples online that I have found are not as crazy as mine (only a simple one basic query). Any help with this would be greatly appreciated. This is what I have been able to figure out so far for my spreadsheet : <cfset objSpreadsheet = SpreadsheetNew()> <cfset filename = expandPath("./myexcel.xls")> <!--- Create and format the header row. ---> <cfset SpreadsheetAddRow( objSpreadsheet, "Associate

AngularJS - Special Characters in JSON and Coldfusion Request

Deadly 提交于 2019-12-11 17:15:16
问题 I'm trying to use a JSON string for doing an INSERT in a database . I'm using AngularJS and Coldfusion for doing that. Thanks to a form I retrieve data, I create an object in the service (controller) and thanks to a factory I do an $http.post. My problem concerns the string sent to it: the string contains special chars (for instance "&" and I don't know how to treat this kind of issue. Here an example of the string sent: jsStruct={"LASTNAME":"Nämé","FIRSTN%a£öME":"TestFirstName","PHONENUMBER"

Horizontal and Vertical complicated Javascript Calculation and Coldfusion

风格不统一 提交于 2019-12-11 16:57:00
问题 Now the table is being populated with 2 loops and an array. I have to control everything through the classes I put on the input. Been working on this for a while, some insight would be helpful. Here is the loop and the inputs: <cfloop from="1" to="#ArrayLen(labels)#" index="r"> <tr> <td class="labels"><cfif ArrayIsDefined(labels,r) AND labels[r] NEQ "Open">#labels[r]#</cfif></td> <cfloop from="1" to="7" index="i"> <td id="Day#i#" class="row#r# col#i#"> <cfif r EQ 1>#Left(DayOfWeekAsString(i)

Setting Up Flex Project with Coldfusion

本小妞迷上赌 提交于 2019-12-11 16:45:18
问题 We recently built a new dev server for flex builder and installed coldfusion 8. We currently have everything working on our old server using coldfusion 7. We copied the services-config.xml and our project over to the new server. It compiled fine, I updated all references to the new server. When I try to run the flex application I receive the following error: Warning: Failed to load policy file from http://localhost/crossdomain.xml * Security Sandbox Violation * Connection to http://localhost

Server and JRE are set to TLS 1.2 but Coldfusion 9 still trying to use TLS 1.0

回眸只為那壹抹淺笑 提交于 2019-12-11 16:09:54
问题 I'm not 100% sure what's going on however we have a Coldfusion 9 server that connects to a web service. the web service has made the changes to only allow connections via TLS 1.2. We thought we were ok because we set the server to only use TLS 1.2 and we set the JRE (1.7) to use tls 1.2. However in the Coldfusion Administrator -> Web services when I try to refresh the web service connection it still tries to connect via TLS 1.0 (confirmed using wireshark). Anyone that is well versed in

Coldfusion creating reports with wkhtmltopdf

狂风中的少年 提交于 2019-12-11 15:59:13
问题 I am trying to get some assistance with wkhtmltopdf. I have downloaded and installed and trying to get it to work correctly with my program. What I have is a form that lets the user choose print, preview or excel. When the user chooses print I want pop up the html table that is created by a query depending on the associates and locations that are chosen. Right now when the user chooses print it just shows this table in the browser. <cfif FORM.Format IS "print"> <!---<cfdocument format="pdf"

How to pass a date into a ColdFusion collection to be searched

谁说我不能喝 提交于 2019-12-11 15:42:02
问题 I'm using a ColdFusion collection to search events and I need to pass a date into the collection as a "mmm" so it can be searched. Every time I try I get an error. custom4="DateFormat(start_date, "mmm")" Update: I'm trying to search "month" of the current year 回答1: You should use the above code like custom4=dateFormat(start_date, "mmm") (Remove the outer double quotes) 回答2: Quotes aren't the problem (and the suggestion of removing them actually causes an error). The problem is DateFormat()