coldfusion

Create Wufoo webhook with PUT request in ColdFusion

[亡魂溺海] 提交于 2019-12-11 07:31:47
问题 I'm having troubles with building correct PUT request to the Wufoo. In all my attempts I see the same error: 404 A WebHook must contain a url parameter. Here is the version with JSON data type: <cfset local.action = "forms/#local.formHash#/webhooks.json" /> <cfset local.request = {"url" : local.webHookURL, "handshakeKey" : local.webHookKey} /> <cfset local.request["handshakeKey"] = local.webHookKey /> <cfhttp url="#local.baseURL##local.action#" method="put" username="#local.apiKey#" password=

Using a Coldfusion cfc how do you format return data for jqgrid dependent selects in the edit form?

拈花ヽ惹草 提交于 2019-12-11 07:28:47
问题 I am trying to figure out how to set up dynamic dependent selects. This is an edit of my original post to try to make it more readable and clear. I have included my whole grid in case it helps but it might be too much information. The grid displays perfectly. <!---stylesheets ---> <link rel="stylesheet" type="text/css" media="screen" href="jquery-ui-1.8.17.custom.css" /> <link rel="stylesheet" type="text/css" media="screen" href="ui.jqgrid.css" /> <script src="jquery.js" type="text/javascript

Using coldfusion, how do I display the elements of an array in random order?

∥☆過路亽.° 提交于 2019-12-11 07:28:10
问题 Using ColdFusion, my goal is to output all the elements of an array in a totally random order. My array has 6,000 items which are pulled from an XML file. Usually, if I didn't require them to be output in a random order, I would do this: <cfoutput> <cfloop from="1" to="#arraylen(thestring)#" index="x"> #thestring[x]#<br/> </cfloop> </cfoutput> The result is that my strings are displayed in the order they were when pulled from the XML file: thestring[1] thestring[2] thestring[3] thestring[4]

image not displayed in cfdocument

对着背影说爱祢 提交于 2019-12-11 07:13:08
问题 I found a curios situation couple of days back which I was able to solve after losing a lot of temper. Well the issue is I am placing an image inside a dynamically created pdf(using cfdocument). I am able to see the image when I run my website locally. But once I upload the code to prod I get the broken-image at the image placeholder. 回答1: accepting Al everett's suggestion, the solution to problem is briefed. The issue of the image not being displayed was due to the HTTPS access of the

Facebook OAuthException - This authorization code has expired. [code=100]

笑着哭i 提交于 2019-12-11 07:09:52
问题 I have setup the Facebook API SDK for ColdFusion - https://github.com/affinitiz/facebook-cf-sdk I've setup a login process which works successfully but after 10 minutes or so when I return and refresh the page, it shows the following error: This authorization code has expired. [code=100] Is there something I am missing with the FB login? Am I meant to be checking against something manually in order to persist the session? Cheers Shaun <cfscript> import facebook.sdk.FacebookApp; import

Coldfusion: executing dynamic query containing cfqueryparam

ぐ巨炮叔叔 提交于 2019-12-11 07:01:19
问题 First, the code. I'm making a struct of queries: <cfset myQueryStruct = { qone = "select * from t1 where column = <cfqueryparam cfsqltype='cf_sql_varchar' value='#arguments.a1#'>", qtwo = "select * from t2 where column = <cfqueryparam cfsqltype='cf_sql_varchar' value='#arguments.a1#'>" }> I need to execute the queries dynamically like below: <cfquery name="qName" datasource="#dsn#"> #myQueryStruct[arguments.type]# </cfquery> But I am getting an error: Error Executing Database Query.

putting selected values from the JSON

≡放荡痞女 提交于 2019-12-11 06:57:59
问题 If I do the following on a query : <cfdump var="#serializeJSON(findglobal)#"> I get the following: { "COLUMNS": [ "DELIVERED_PERCENTAGE", "UNIQUE_PERCENTAGE", "SPAM_PERCENTAGE", "DROP_PERCENTAGE", "REQUEST_PERCENTAGE", "BOUNCE_PERCENTAGE", "DEFERRED_PERCENTAGE", "PROCESSED_PERCENTAGE", "OPEN_PERCENTAGE", "BLOCKED_PERCENTAGE" ], "DATA": [ [ 19.54, 6.06, 6.05, 0.63, 21.17, 0.85, 14.83, 20.53, 10.26, 0.19 ] ] } But I am using Geikoboard which understand only the following format of JSON. So I

Wamp setup - CFIDE - Coldfusion mapping is not working

回眸只為那壹抹淺笑 提交于 2019-12-11 06:52:56
问题 I have Coldfusion, the CF administrator and my test site all setup and working on my local machine using WAMP. The only thing that isn't working is the Coldfusion mappings. For instance if I have the following mapping in the CF admin: Logical Path Directory Path /cfscripts/ E:\wamp\www\CFIDE\scripts\ But when I try to access the path using my local test site http://dev.example.com/cfscripts/ the directory is not found. Can someone point out where I am going wrong here? It's probably something

How to resolve deadlock issue in ColdFusion 9: coldfusion.util.AbstractCache$Lock

梦想与她 提交于 2019-12-11 06:43:17
问题 I have been attempting to resolve an issue where the execution of certain scripts causes a deadlock, putting all subsequent requests into limbo, using up 99.9% of the CPU, and eventually effectively crashing the server. Here is an example stack trace for one of the requests which has been put in limbo (waiting eternally): Thread Stack Trace Trace Time: 21:00:44.463 06-Jun-2012 Request ID: 6131 Script Name: http://www.example.com/allreviews.cfm Started: 21:00:21.225 06-Jun-2012 Exec Time:

Coldfusion SerializeJSON and deSerializeJSON is converting a string to number

江枫思渺然 提交于 2019-12-11 06:39:37
问题 ColdFusion is converting a string to number when passing to JS via a SerializeJSON and deSerializeJSON. This is only happening when an 'E' is used between two set of numbers. like 3E6, 65E3, 56e45 etc. This is the code inside cfscript. x = "2e9"; writedump(SerializeJSON(x)); writedump(deSerializeJSON(SerializeJSON(x))); Output: 2.0E9 2000000000 Please suggest, if is there any other way for such issues. 回答1: It is this: https://bugbase.adobe.com/index.cfm?event=bug&id=3695627: "SerializeJSON