cfml

Creating a Google reCAPTCHA 'secure token' in ColdFusion

断了今生、忘了曾经 提交于 2019-12-04 17:20:26
Google allows you to create a 'secure token' for reCAPTCHA which means you can use the same key/secret across multiple domains. No need to create key/secrets for every domain you look after. Here's their docs, as you can see it has no insight on how the token is encrypted other than an example in Java . My question is how would this be written in ColdFusion. I've had a crack at it for 4 hours, but just can't get it to work. Other examples I've reviewed: An example in PHP : An example in .NET Any ColdFusion encryption guru's out there know how to do this? UPDATE Thanks Leigh, think we're

Lint for ColdFusion [closed]

你说的曾经没有我的故事 提交于 2019-12-04 17:05:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is there an equivalent of JSLint for ColdFusion? 回答1: I've not encountered anything particularly lint-like for CF, but there are assorted syntax checkers: CodeCop (riaforge) VarScoper (riaforge) QueryParam Scanner (riaforge) 回答2: There are no online validators that I am aware of for ColdFusion. You can download

Convert coldfusion json to struct

大憨熊 提交于 2019-12-04 03:52:44
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":5},{"id":7},{"id":8},{"id":9},{"id":10},{"id":11},{"id":12}]}, {"id":15,"children":[{"id":17},{"id":190},{"id":191},{"id":131},{"id":16},{"id":142},{"id":124}]}, {"id":149,"children":[{"id":150},{"id":160},{"id":161},{"id":184}]}, {"id":20,"children":[{"id":132},{"id":127},{"id":152},{"id":107},{"id":108},{"id":109},{"id":110},{"id":125},{"id":128},{"id":130},{"id":129},{"id":112}]}, {"id":162,

AJAX & Coldfusion: Performing an update to database and reflecting changes without reload

时光总嘲笑我的痴心妄想 提交于 2019-12-02 11:19:28
问题 I'm having problems visualizing the solution that I need here. I have a select menu on the site that I'm working on and the client would like to be able to select an option called "Create New Origin", which would then have a JS window pop up with a blank field for the user to type in that new origin. Upon submitting this form the database would be updated and the select menu would now feature this item without an entire refresh of the page. The database side of things is all set up and ready

Checkbox in a ColdFusion form

这一生的挚爱 提交于 2019-12-02 10:39:43
问题 My code is below. I need to have both of the checkboxes checked by default when the page loads. This displays a result of the query. Now when one of the checkboxes is unchecked the form needs to be submitted and different query results need to be displayed. The checkboxes are always being checked even when I uncheck one. Can someone please guide me here? <form action="abc.cfm?show=yes" method="post" name="myform"> <table align="center"> <tr> <td> <input type="checkbox" checked="checked" name=

JSON / CFML - Looping over an array of structs

末鹿安然 提交于 2019-12-02 05:51:33
问题 I'm testing an app called Barcode Scanner Terminal for my business; I'm looking to use it as a replacement of sorts for a timeclock. Employees can scan a barcode or QR code on their ID badge, and this app will send that, along with a timestamp and even GPS coordinates to my server to verify that they're at the right place at the right time. When the phone has an internet connection, this information is passed through via a special URL on my site and I can make it work flawlessly. The problem?

Checkbox in a ColdFusion form

跟風遠走 提交于 2019-12-02 05:15:52
My code is below. I need to have both of the checkboxes checked by default when the page loads. This displays a result of the query. Now when one of the checkboxes is unchecked the form needs to be submitted and different query results need to be displayed. The checkboxes are always being checked even when I uncheck one. Can someone please guide me here? <form action="abc.cfm?show=yes" method="post" name="myform"> <table align="center"> <tr> <td> <input type="checkbox" checked="checked" name="chkbox" id="chkbox1"> <strong> Agreement Only</strong>   <input type="hidden" name="chk" id="chk1">

JSON / CFML - Looping over an array of structs

隐身守侯 提交于 2019-12-02 00:11:29
I'm testing an app called Barcode Scanner Terminal for my business; I'm looking to use it as a replacement of sorts for a timeclock. Employees can scan a barcode or QR code on their ID badge, and this app will send that, along with a timestamp and even GPS coordinates to my server to verify that they're at the right place at the right time. When the phone has an internet connection, this information is passed through via a special URL on my site and I can make it work flawlessly. The problem? When there is no internet, the phone stores the scans locally and you can send it to your server later

How to do a cfdump inside a cfscript tag?

我是研究僧i 提交于 2019-12-01 14:56:41
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> ... <cfif cgi.REMOTE_ADDR eq "IP"> <cfdump var="#var1#"><br/> </cfif> ... </cfscript> Any clues on what can be done? ale You can't do it directly like that in versions before CF 9. You can, however, use the dump() UDF found at CFLib. There's a whole library of UDFs there that mimic CF tags that don't have direct CFSCRIPT equivalents. ColdFusion 9 (and up) offers the writeDump() function. Adobe Documentation Linkfor

How to do a cfdump inside a cfscript tag?

99封情书 提交于 2019-12-01 13:41:44
问题 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> ... <cfif cgi.REMOTE_ADDR eq "IP"> <cfdump var="#var1#"><br/> </cfif> ... </cfscript> Any clues on what can be done? 回答1: You can't do it directly like that in versions before CF 9. You can, however, use the dump() UDF found at CFLib. There's a whole library of UDFs there that mimic CF tags that don't have direct