coldfusion-9

Comparing two strings or objects and getting the difference back

我是研究僧i 提交于 2019-12-10 20:13:16
问题 I would like to implement a type of version history on my website and I need a way of comparing strings or object keys. For example: Original string / object key: The quicker brown fox Revised string / object key: The quick brown fox jumped over the lazy rabbit Revision: added jumped over the lazy rabbit removed er I would like to save only the revision in my history table. I don't really know where to start, so any ideas how to get me going or advice on the approach would be really

ColdFusion Version 9 Secure FTP - Unable to Connect

邮差的信 提交于 2019-12-10 19:01:34
问题 I am looking to automate something that is currently being done manually. The manual process is being performed using ftp client Filezilla. These are the instructions: In the Host field, type in the IP address: xx.xxx.xxx.xxx. In the Port field, type in 990. In the Servertype dropdown list, change it so that it reads FTP over SSL/TLS (implicit encryption). (NOTE: On the Mac OSX version this option will read FTPS – FTP over implicit TLS/SSL). In the Logontype area, select Normal. In the

How to sign a quickbooks online API request in ColdFusion 9?

浪子不回头ぞ 提交于 2019-12-10 18:55:58
问题 In my CF app, I've used the CF OAuth code at riaforge to get request token and access token from QuickBooks Online and it works fine. After I tried to make a QBO API call by starting to build the http headers of the call (I followed the instructions on the section "HTTP Authorization Header" here: Implement OAuth in Your App). Then built the http header based on the methods of the code at riaforge because it worked. In addition, I've respected the order of the parameters given by Intuit in

ImageNew toBase64 encoding issue with loss of quality in ColdFusion

穿精又带淫゛_ 提交于 2019-12-10 18:00:48
问题 I have been having problems with toBase64() for awhile. I am hoping someone can tell me why CF toBase64() seems to lost something i.e. in my example it reduces the quality of an image. I have a solution (see last code example below), but I hate not understanding why and would love to solve this is CF. If anyone would be so kind to run the code below, you would then see that after toBase64 conversion the image quality is bad. Nothing major, but it does not look as good after the encoding. If

Display CFLoop Items in Order from Form

淺唱寂寞╮ 提交于 2019-12-10 13:56:01
问题 I have the following form on the page form.html and it submits to cfpage.cfm. The first name, last name, address, and age all show up, but not in a consistent order. Sometimes it will show last name, first name, address, and age. In another instance it may show address, first name, age, and then last name. How can I display the CFLoop items - with the text the user inputs in the text boxes - in the order they are shown in the form? I have multiple generic forms so I have to use a bit of

How to send table html with email using mailto?

和自甴很熟 提交于 2019-12-10 11:00:05
问题 I want to send a email using a href="mailto.." I have this working code below: <cfset month = URL.Month> <cfset year = URL.Year> <cfquery datasource="newsletters" name="testing"> SELECT * FROM departments_names where dates >='#datestart#' and dates < #dateend# AND shooting_star_dept_name IS NOT NULL ORDER BY DATEPART(year, dates), DATEPART(month, dates), </cfquery> <cfoutput query="testing" GROUP="deptartmetn_name"> <tr> <td> <a href="mailto:?subject=#month#/#year#%20%20Results%20for

Force full calculation of entire workbook in Coldfusion / Apache POI

守給你的承諾、 提交于 2019-12-10 10:27:51
问题 Given a workbook with cross-sheet formulas generated by Coldfusion 9 via Apache POI . I want to programmatically force an entire workbook to do a "full calculation with dependency tree rebuild" before saving the workbook to disk. So that when my end-users open the spreadsheet, they do not have to press Ctrl - Alt - Shift - F9 . How do I accomplish this in coldfusion ? References: http://adobe.ly/HbLBZo http://poi.apache.org/spreadsheet/eval.html http://bit.ly/HJJA3Q 回答1: Unfortunately there

displaying an ajax response with jquery

☆樱花仙子☆ 提交于 2019-12-10 10:27:06
问题 I have a Coldfusion cfc that queries a database for data. I would like to call that cfc and display the ajax response within a div. Eventually I would like to format the response with html. Currently I am having trouble with displaying the response. This is what I have so far. Here is the cfc : Asset.cfc <cffunction name="Asset" access="remote" returntype="array"> <cfargument name="asset_id" type="string" required="yes"> <!--- Define the local scope. ---> <cfset var LOCAL = {} /> <cfset var

Using Apache HttpComponents for http requests with NTLM authentication

删除回忆录丶 提交于 2019-12-09 20:56:24
问题 Quick background. CFHTTP doesn't support Windows NTLM/Authenticate authentication, only basic authentication. I need to make http requests that will have to authenticate against NTLM, so I've ended up rolling my own version of CFHTTP. I found Terry Ryan's article that uses the apache httpclient version 3.1 to perform digest authentication and have built upon that using version 4.1.2 instead which includes NTLM functionality. I have a function that will perform a get request and then other

Creating QR Code with Coldfusion

元气小坏坏 提交于 2019-12-09 16:04:12
问题 Has anyone gotten the "Open Source QR Code Library" to work with ColdFusion? I need to generate QR Codes in ColdFusion. I also found this tutorial on how to generate it using Zxing. But the tutorial is not clear on how to configure the files, e.g. what needs to be in which dir... Any help and alternatives are welcomed, thanks. 回答1: Zxing uses two (2) jars: core.jar and javase.jar . The easiest way to install them is to place both jars anywhere in the CF classpath (example: C:\ColdFusion8