cfml

Is it possible to access the matrix parameters (name-value pair separated by semicolon) in ColdFusion?

会有一股神秘感。 提交于 2019-12-24 01:44:52
问题 I'm new to matrix parameter and I know CF10 can access them through their new RESTful API support. However, is there a way to access these parameters without using RESTful API support? E.g. http://moremaps.com/map/color.cfm;lat=50;long=20;scale=32000 回答1: You can use: color.cfm;lat=50;long=20;scale=32000 Then get the param string with: ListRest(getPageContext().getRequest().getRequestUri(),';') This worked back in CFMX - it's not specific to CF10 or part of the RESTful API, and is available

"How to fix `remove default alphabetical ordering of SerializeJSON() `

好久不见. 提交于 2019-12-23 09:33:23
问题 I'm trying to add the serialized data in a request to third party API which needs a specific order of the data to be maintained, but SerializeJSON orders in alphabetical order which breaks the format required by the third party API. Could someone help me to figure it out INPUT: <cfset data ={ "Booking": { "ActionCode":"DI", "AgencyNumber":"23", "Touroperator":"TVR", "BookingNumber":"323", }, "Payment": { "__type":"paymenttype", "PaymentProfile": { "Value": 4, "Manual": false }, "PaymentType":

When should I use # in ColdFusion?

偶尔善良 提交于 2019-12-23 06:57:02
问题 This has been one of the biggest obstacles in teaching new people ColdFusion. When to use # is ambiguous at best. Since using them doesn't often create a problem it seems that most people gravitate to using them too much. So, what are the basic rules? 回答1: I think it may be easier to say where NOT to use #. The only place is in cfif statements, and cfset statements where you are not using a variable to build a string in quotes. You would need to use the # sign in almost all other cases.

Best IDE/Editor for ColdFusion? [closed]

不想你离开。 提交于 2019-12-20 11:20:23
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I am just starting at a job in which I will be using a lot of ColdFusion. What is the best IDE/Editor to use? 回答1: I'd like to provide

Coldfusion 10 DateFormat Issue

孤者浪人 提交于 2019-12-18 05:14:16
问题 I am using the DateFormat function to convert dates to this format: yyyy-mm-dd . This is the original format of the date: dd-mm-yyyy . Below is a snippet of the code: <cfset newdate = #DateFormat(Trim(mydate), "yyyy-mm-dd")# /> The problem is that I get different results for different dates. For example: If my original date is: 15-05-2013 ( dd-mm-yyyy ) The result is: 2013-05-15 ( yyyy-mm-dd ) However, if I change the input and: The original date is: 01-05-2013 ( dd-mm-yyyy ) The result is:

Which EncodeFor should be used for location?

和自甴很熟 提交于 2019-12-13 14:19:12
问题 Which EncodeFor should be used location() ? If I want to push some data via location, what should it look like? location("obtainBDK.cfm?message=#ErrorMessage#", false); // nothing OR location("obtainBDK.cfm?message=#EncodeForHTMLAttribute(ErrorMessage)#", false); OR location("obtainBDK.cfm?message=#EncodeForURL(ErrorMessage)#", false); OR Something else? 回答1: cflocation / location sets the Location HTTP header. The browser reads this value and requests the mentioned resource via HTTP GET.

What version of Hibernate does CFML use?

我们两清 提交于 2019-12-13 14:16:17
问题 The Hibernate docs sometimes refers to differences between different versions. What versions of Hibernate do ColdFusion 10 use? Is it the same in ColdFusion 9? Does Railo stable/bleeding edge use different versions? 回答1: All current engines use version 3.5 , but there are different point releases between CF and Railo. The latest CF beta comes with version 4.1 . ColdFusion 11 BETA uses 4.1.10-Final ColdFusion 10 uses 3.5.2-Final (verified on u11) ColdFusion 9 uses 3.5.2-Final (verified on 9,0

Upload Files To Google Drive Using ColdFusion

懵懂的女人 提交于 2019-12-12 09:28:54
问题 This question was migrated from Code Review Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . *NEW UPDATED FOR BETTER SECOND PART - NOW GETS TO "308 Resume Incomplete", even though file should be just one upload! I am using the foundation of cfgoogle from Ray Camden. But Google has deprecated the code for document uploads. The new standard is Resumable Media Uploads. I have this part working (up to and including the "Initiating a resumable upload request") in

How to secure a webservice CFC for use with AJAX

倖福魔咒の 提交于 2019-12-12 06:31:54
问题 I have a CFC file with remote access enabled, I am using this to perform various admin tasks such as adding / removing image records from a database. The calls to this CFC are made through AJAX via custom JavaScript on my admin pages. I placed the CFC in what I thought was a secured directory but having had some issues with images disappearing of their own accord and I have since found it is not secure at all. I would like to secure the CFC. There is already a session based security CFC that

Losing variable. Element is undefined in VARIABLES

此生再无相见时 提交于 2019-12-12 04:15:19
问题 We are getting this error in both ColdFusion 9 and ColdFusion 11 servers in production. I originally thought is related to ColdFusion 9 and JavaHeap space or not enough memory. We moved this process to run on a brand new server (ColdFusion 11) where nothing else is running and has a lot of memory and we still get the error. Here is some of the code for this cfm page: <cfset variables.email_count = 0> <!--- email notifications ---> <cfoutput query="getOrdersForNotification" group="order_id">