coldfusion

Un-encrypting / re-encrypting a ColdFusion encrypted string in PHP

旧城冷巷雨未停 提交于 2019-12-17 16:31:10
问题 I'm in the unenviable position where I have to maintain functionality with an existing ColdFusion application. As part of it's login process the Coldfusion app stores a cookie with an encrypted string. encrypt(strToEncrypt, theKey, "AES", "Base64") I can successfully decrypt this string in PHP using MCrypt and the following code mcrypt_decrypt( MCRYPT_RIJNDAEL_128, base64_decode($theKey), base64_decode($encrypted_string), MCRYPT_MODE_ECB, "0000000000000000") I now have the need to perform the

Mapping to a CFC in ColdFusion

旧巷老猫 提交于 2019-12-17 16:07:52
问题 In my application I have all my CFC's in a cfc folder. From the site root I can access them without any trouble by simply referring to them in my <cfinvoke> tag as component=cfc.mycomponent method=mymethod The trouble is, when I want to access the cfc from another page that's not in the root I can't use component=../.cfc.mycomponent to get in touch with that cfc. What am I doing wrong here? 回答1: There are a handful of options for getting this to work. Unfortunately, learning them has taken me

Google Maps infoWindow only loading last record on markers

懵懂的女人 提交于 2019-12-17 11:50:14
问题 I'm trying to load a google map with dynamic markers and dynamic infoWindows to go with them. Basically I've got the markers working. The infoWindows are clickable and closable, however they do not have the correct content. It seems that the content for every infoWindow is the last record that is found in the query loop. You will see whats happening here Here's the code: <script type="text/javascript"> //Load the Google Map with Options// function initialize() { var myLatlng = new google.maps

ColdFusion not catching NoClassDefFoundError

陌路散爱 提交于 2019-12-17 10:00:27
问题 I am using ColdFusion 8. I would like to catch a NoClassDefFoundError exception in ColdFusion however I can't... It still fails and logs the error in the exception.log file. Here is what I tried. <cftry> <cfset myJavaObject.myMethod()> <cfcatch type="any"> <cfdump var="#cfcatch #"> </cfcatch> <cfcatch type="java.lang.Throwable"> Horrible exception. <cfdump var="#cfcatch #"> </cfcatch> </cftry> But this does not work. Could you please show me how to do that? I need to catch this error at a

Invoke ColdFusion function using AJAX

蹲街弑〆低调 提交于 2019-12-17 09:48:58
问题 I need to invoke a ColdFusion function(present in a .cfm file) when the user clicks on a link. And I would like to do it using jQuery. I have a jQuery snippet which looks like- <script type="text/javascript"> $(document).ready(function(){ $("td.ViewLink a").click(function(event){ event.preventDefault(); )} I am new to both jQuery and AJAX, so I might sound naive here. Should I use AJAX to invoke the ColdFusion function? Something like requesting to execute a specific function on the server.

How to suppress the file corrupt warning at Excel download?

夙愿已清 提交于 2019-12-17 05:04:17
问题 I have a web page which links to an Excel 2007 worksheet. It is a .xls file and not .xlsx file. When I click on the link I get the usual dialog box to either open/save the Excel file. On clicking 'Open', I get the following warning message- The file you are trying to open, 'filename.xls' is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now? Can I some how

Evaluate List of ColdFusion Variables

一个人想着一个人 提交于 2019-12-16 18:02:21
问题 i created a table using coldfusion lists system, rows are months and the columns are cities, and the variable is the sales, now i need to add to every evaluated sale variable, the list of companies that made these sales, so far there is no problem with writting the sql of this table and the sales, but i cant define-#evaluate# the list of these companies that belongs to each sale in the table, since it is the LIST of companies, not one variable like sale, i hope i made myself clear :) here is

The symbol you provided is not a function

纵然是瞬间 提交于 2019-12-14 04:25:29
问题 Key points before reading further All variables are properly var'ed (you'll have to trust me) Scopes are not being reset while these long-running processes are happening When dumping the metadata for the supposedly missing/invalid method, I get the right information There are only two places where the name of this method are referenced in the application. Once where it's defined, and once were the method is called in the code below. I have a very strange intermittent error that I can't seem

cffile alternative, I need to upload without form submit

谁都会走 提交于 2019-12-14 03:59:29
问题 So I want to upload a file to the server using ajax, so the form is not submitted. Cffile requres the filefield attribute, but as there is no form object passed to coldfusion that doesn't work. I can store the value entered by the user as a variable in javascript, and pass that variable to cf. How can I use this variable to upload my file? Thanks. EDIT Solved by submitting to iframe. 回答1: You can use the cffileupload tag (embeds a flash widget for uploading) , or take advantage of

ColdFusion 10, IIS 7.5, and custom 404 page

萝らか妹 提交于 2019-12-14 03:54:34
问题 I am attempting to setup a custom 404 error with CF10 and IIS 7.5. Previous to CF10 (and IIS 7), you can get the URL of the non-existent page via the querystring (e.g., 404;http://www.example.com/some/file.html) when the custom 404 page is processed. However, with CF10 and IIS 7.5, the querystring returns 404;http://www.example.com/jakarta/isapi_redirect.dll. Is there a way to retrieve the actual URL of the missing path, like in prior versions? 回答1: I have a workaround that I posted to the