cfc Questions

2

Solved

I have a group of CFC's that I access from two seperate Applicaiton scopes. One /Application.cfc is in the Root. The other Application is in /Admin/Application.cfc The cfcs are in in /_cfc/ If I...
Enterectomy asked 2/4, 2012 at 6:48

3

Solved

So, given that I have an instance of this component: foo.cfc <cfcomponent> <cffunction name="locateMe"> <cfreturn "I don't know where I live!"> </cffunction> </cfcom...
Okapi asked 16/2, 2012 at 21:4

4

Solved

For example I want to be able to programatically hit a line of code like the following where the function name is dynamically assigned without using Evaluate(). The code below of course doesn't wor...
Ridglee asked 17/9, 2008 at 15:26

4

Solved

I have a remote CFC that returns a structure. It is called using cfajaxproxy. I want the JSON returned to be in order i.e. first into the structure first into the JSON object. However, the JSON tha...
Aden asked 27/9, 2011 at 16:22

1

Solved

Inside the cfm of the cfmodule, values are returned through the use of Caller scope. If I call a cfmodule inside a function in a CFC, Caller maps to the Variables scope of the CFC correct? Can I re...
Lacrimator asked 13/9, 2011 at 23:47

4

Solved

I am using ColdFusion 9 and jQuery. I am new pretty new to using ColdFusion CFCs via CFAJAXPROXY. I am curious as to whether my database is at risk and how I might easily patch security holes. I ...
Dink asked 18/8, 2011 at 21:27

3

Solved

I have a function to convert string to number <cffunction name="convertToNumber" returntype="numeric"> <cfargument name="separator" required="Yes" type="string" /> <cfargument nam...
Malaspina asked 10/8, 2010 at 6:36

1

Solved

This is the first time I'm writing a cfc that will catch JSON data from an external web server that would be posting information. I'm working with a new service that can be set to send us, via HTT...
Brandish asked 25/4, 2011 at 17:42

4

Solved

Update: Based on the answers I initially went the route of using IsInstanceOf() which was designed for this need. However it turned out to be extremely inefficient for some unknown reason. In deb...
Jawbone asked 18/5, 2009 at 19:34

4

Solved

(a) What cases should you var scope variables and (b) what cases should you not var scope in a ColdFusion components?
Hack asked 17/3, 2011 at 14:51

1

Solved

I would like to add some code to my Application.cfc onRequestEnd function that, if a certain application variable flag is on, will log query sql and execution time to a database table. That part is...
Declare asked 17/12, 2010 at 19:52

5

Solved

I've seen all kinds of solutions for extending cfcs in parent folders with access to parent files or the CF administration, but I have not seen a workable solution to extend a cfc in a "shared"/sib...
Aseptic asked 22/10, 2010 at 20:38

2

Solved

I'm moving from an MS Access backend to mySQL. This used to work but now doesn't and I can't figure the problem. <cfargument required="false" name="expiry" type="any" default="" /> <c...
Scourings asked 22/6, 2010 at 14:46

2

Solved

I've written a database load script in ColdFusion and I'm having a problem that the script slowly runs out of memory. I've split each table load into its own thread with <cfthread> and I'm ca...
Clough asked 2/3, 2010 at 16:18

2

Solved

I'm using the following scrip to call a CFC function: function loadQuery() { $.get('QueryData.cfc',{},function(GetMyData){ $("#content").html(GetMyData) }) return false } $(document).ready(f...
Hsiuhsu asked 4/3, 2010 at 17:40

4

Solved

In a Coldfusion component / CFC, I want to properly scope some variables to be available for all contained functions, but to be hidden or blocked from outside scripts. What is the name of the cfc's...
Centuple asked 17/12, 2009 at 19:49

3

Solved

Possible Duplicate: restart application without restarting server? How do I reset a Coldfusion Application / application.cfc without resetting the Coldfusion Server instance? If I rem...
Agata asked 14/12, 2009 at 16:58

3

Solved

With the new ways of writing CFC in CF9, what are some of the coding convention new to CF9? Here are some I can think of... always use LOCAL scope always include init() method that returns itsel...
Specular asked 26/8, 2009 at 7:18

3

Solved

What is the difference between cfproperty tag defined variable and the variables scope variable in ColdFusion? I have Java language experience, can you compare the ColdFusion cfproperty variable, ...
Extinct asked 9/7, 2009 at 8:42

4

Solved

Are ColdFusion objects (i.e. CFCs invoked via cfobject) normally passed by reference or by value (copied in memory)? And is it possible to force ColdFusion to pass an object in either manner?
Bandsman asked 20/10, 2008 at 19:27

3

Solved

I thought CFC's methods defined as functions in cfscript are output=false by default, but when I open the CFC in cfcexplorer.cfc (browser directly to the CFC), it says Output: enabled. cfcexplore...
Rubidium asked 10/6, 2009 at 20:39

4

I have been building a list of CFC best practices to share. There are a numerous of articles out there but I thought it might be neat to get any tricks and tips together here in one place that hav...
Lewendal asked 6/3, 2009 at 18:54

9

Solved

In a ColdFusion Component (CFC), is it necessary to use fully qualified names for variables-scoped variables? Am I going to get myself into trouble if I change this: <cfcomponent> <cfse...
Shagreen asked 12/9, 2008 at 15:57

© 2022 - 2024 — McMap. All rights reserved.