coldfusion

How to use Coldfusoion MOD?

随声附和 提交于 2019-12-17 21:20:23
问题 I have code that grabs events from the FullCalendar.js which works fine. However, I am having a hard time to style it in a way that in each column, it has two events, breaks and goes to the next column. The code is written in coldfusion and I read I can use MOD. However, I have tried a if statement and a counter to track how many events are and yet it does not go to the next column The following is the code I am using. I am trying to target the "More Event" section so that when it hits two

Populate Select list with AJAX

南楼画角 提交于 2019-12-17 21:20:10
问题 So I am a real JQUERY novice, so please go easy on me. I would like to populate a CFSELECT using data returned from a CFC. Here is my working CFC: <cfcomponent> <cffunction name="getDescriptions" access="remote" returnformat="json" returntype="string" output="false"> <cfquery name="customDescriptions" datasource="#datasource#"> select description from service_descriptions where description <>"ADD NEW" order by description </cfquery> <cfset data = serializeJSON(customDescriptions)> <cfreturn

How to modify EXIF metadata for JPEG images using Coldfusion?

馋奶兔 提交于 2019-12-17 20:19:18
问题 I am using Coldfusion to view images stored in the file system and I can READ the EXIF metadata of JPEGs, but I'd like to know if it is possible to modify this information and re-save the image. 回答1: I know that there are XMP and IPTC custom tags out there, I googled now and seems that javaloader.cfc + some java lib are your only sure option. EDIT: Since I work on stock photography application I got interested and found this command line tool which could do the trick: http://www.sno.phy

restart application without restarting server?

吃可爱长大的小学妹 提交于 2019-12-17 19:08:16
问题 Is there a way to restart a ColdFusion application without restarting the entire server? There are two ColdFusion applications running on a server and I only want to restart one of them. 回答1: If you are using Application.cfc, you can update it so that you can force a call to onApplicationStart() if something specific is passed in the url, or something similar. Simply place a check for that magic token in onRequestStart(), and call onApplicationStart() if it is. If you are not, you can try

Getting ColdFusion-Called Web Service to Work with JavaLoader-Loaded Objects

孤人 提交于 2019-12-17 17:05:29
问题 Is it possible to use JavaLoader to get objects returned by CF-called web services, and JavaLoader-loaded objects to be the same classpath context? I mean, without a lot of difficulty? // get a web service ws = createObject("webservice", local.lms.wsurl); // user created by coldfusion user = ws.GenerateUserObject(); /* user status created by java loader. ** this api provider requires that you move the stubs ** (generated when hitting the wsdl from CF for the first time) ** to the classpath. *

How to format spreadsheet columns using ColdFusion?

蹲街弑〆低调 提交于 2019-12-17 16:59:15
问题 I am using SpreadsheetFormatColumns() to format the columns in a spreadsheet to "text", but I don't know how to do this, all the formats in the livedocs are for numbers, currency or dates... is there something like SpreadsheetFormatColumns(mySpreadsheet, {dataFormat="text"}, "1-15") out there? this is really bugging me... Thanks 回答1: In ColdFusion 9.0.1 (i.e. updater 1), if you use SpreadsheetSetCellValue() it will respect the format you have previously set. So to force a column to be text

Convert an image from CFHTTP filecontent to binary data with Coldfusion

对着背影说爱祢 提交于 2019-12-17 16:50:58
问题 I'm trying to convert an image (jpg) loaded via cfhttp to binary data. I can't use cffile action="readBinary" as it is not a local file. 回答1: Here's how I handle this, and I use this to grab and process hundreds of images a day with ColdFusion 8. <cfhttp timeout="45" throwonerror="false" url="http://domain/image.jpg" method="get" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12" getasbinary="yes" result="local.objGet" > <cfset local

ColdFusion: about using custom “own written” Java classes

孤街醉人 提交于 2019-12-17 16:48:28
问题 I need to use my own java class in a cfml page. This entry in the documentation sounds great but does not explain which files I have to create. I tried to create a test.cfm page under my website root. Then placed TestClass.java + TestClass.class in the same path. But that results in an error "class not found"!. Can you please help me? 回答1: a TestClass.java + TestClass.class in the same path. You cannot just place .class files anywhere. When the CF server starts, it only checks specific

Why don't people use <CFLOGIN>?

99封情书 提交于 2019-12-17 16:44:42
问题 Why don't people use CFLOGIN? I remember having problem with it with CF7 some months ago, but I couldn't remember what was wrong with it. 回答1: I use cflogin all the time and it works great. It can be a little tricky to get working the way you like, but the benefits are huge. Being able to fine tune your application with user roles takes care of the bulk of my rights based customization. There used to be some issues with session management that made it difficult to work with. Turning on j2ee

Scientific Notation with PrecisionEvaluate in Coldfusion

南笙酒味 提交于 2019-12-17 16:33:18
问题 I have problems working with large numbers and long decimal numbers, as others have mentioned or solved such issue using PrecisionEvaluate, I could not get consistent result with such function. Example with this code : <cfset n = 0.000000000009> <cfoutput>#precisionEvaluate(n)#</cfoutput> // this will produce "9E-12" <cfoutput>#precisionEvaluate("n")#</cfoutput> // this will produce "0.000000000009" According to Adobe Documentation, using Quote is not recommended (due to processing