cfc

ColdFusion CFC implementation of C# Partial Class?

Does ColdFusion offer a mechanism for splitting CFCs into multiple files? I am NOT talking about extension, I am talking about splitting the SAME CFC into multiple files; the same way C# allows for "partial" classes. The reason for this is because I am using T4 to generate a bunch of CFCs and I want to be able to tag functionality onto...

Flex RemoteObject Intermittently Failing to Invoke CFC

I have a Flex app that uses Flash Remoting and the RemoteObject to pull data from a ColdFusion CFC. About 75% of the time it works, but the other times I get a message using Charles (a debugging tool) that says faultString = "Unable to Invoke CFC". FaultCode = "Server.Processing". Here's my RemoteObject: <mx:RemoteObject id="carsSvc...

How to bind a CFC directly to a select menu?

I'm trying to create a select menu where one can select a department and then select employees in that department. Related Selects... Ok here is the problem...I need to bind directly to the cfc because binding like this: <cfselect name="people" bind = "cfc:test.getPeople({department.value})" /> DOES NOT WORK. It does nothing... here ...

Why isn't my jQuery recognizing the return from my CFC?

I have a page that uses a .post to submit to my cfc. I know the function works fine because the database is being updated but the alert that's being fired is the one in the 'else' statement. Can any of you see why my return isn't firing the correct alert? Am I not capturing the return properly? Some of my variables are hard coded for t...

Using Valums AjaxUpload with a CFC in ColdFusion 8

I was looking for an elegant way to upload images AJAX style. I'm new to all this mind you, and I couldn't find anything really simple and clear to teach me how to do this with a CFC and jQuery. There are some GREAT things out there from Ray Camden and others using Valum's AjaxUpload plug-ing (found here)but it was mostly using a CFM to ...

How can I run a ColdFusion scheduled task at an interval <60 seconds?

I have a CFC method that I would like to run at an interval of 30 seconds. However, the problem is ColdFusion won't let me schedule a task that runs at an interval of 60 seconds or lower. Does anyone have a suggestion about how I can (and should) accomplish this? To preemptively answer the question "What happens when your script runs lo...

Why is jQuery not getting the returned json info from my ColdFusion CFC in this code?

I have a CFC that cycles through a folder and deletes any files in said folder, sort of a 'clean-up' function after an image is uploaded and saved. In that same CFC I have a function that updates text in a database. Bot functions are fired through a jQuery post. The text function returns some a confirmation to my jQuery function, no prob...

coldfusion weird extra space

Hi All, I have a function to convert string to number <cffunction name="convertToNumber" returntype="numeric"> <cfargument name="separator" required="Yes" type="string" /> <cfargument name="number" required="Yes" type="string" /> <cfset LOCAL.arrSeparator = ["comma", "period", "lakh_crore"] /> <cfif ARGUMENTS.separato...

Something wrong in Application.CFC

Hello all. Just writing out my own blog in ColdFusion and all of a sudden, I open up eclipse on my dev machine, check the site in Chrome and it doesn't load. So I tried moving Application.cfc to another folder, voila the page works. The exact error message is: The system has attempted to use an undefined value, which usually indicate...

How do I use Adobe CFC generator

I am using coldfusion builder to generate an ORM CFC. However, when I right click on the table in the RDS view and select "generate ORM CFC", I receive the following error message after choosing the location for the CFC: "www.:8500.com could not be found. Please check the name and try again." I have checked the server configuration and...

coldfusion - bind a form to the database

Hi, I have a large table which inserts data into the database. The problem is when the user edits the table I have to: run the query use lots of lines like value="<cfoutput>getData.firstname#</cfoutput> in the input boxes. Is there a way to bind the form input boxes to the database via a cfc or cfm file? Many Thanks, R ...

How do I pass an onclick argument to a CFC to update the database through AJAX?

New to Ajax. Just trying to do a simple ajax/cfc vote yes/no app. Can’t get it to work What I am trying to accomplish is a simple Vote “Yes or No “ app where it shows the number of votes casted on each link (great idea 882    this sucks 163). After the visitor votes it displays the message (“you voted Yes 883” or “you voted No 164”) ...

cfajaxproxy / cfc Help Please

Now I have everything working but it's not updating the database. Tried changing the code in the cfc page but that just brings up errors when I refresh the page to test it. So I do know it calling up the cfc page, but when i click the link, everything work but updating the database. What did i do wrong?? Below is the code I came up wit...

How to pass an onclick link value to javascript and cfc though cfajaxproxy?

How do I pass an onclick value <CFOUTPUT QUERY="questions"><A HREF="javascript;()" onClick="VoteNo('#ID#');" ID="VotedNo">I Vote No</A></CFOUTPUT> in to javascript so that the script can be used multiple times for different questions? I am also using cfajaxproxy with the javascript so that ID value also needs to be passed on to the CFC s...

ColdFusion & Ajax: Error Invoking CFC

I have tried multiple tutorials on this topic from Forta.com and yet run into the same error: "Error invoking CFC/....(file path)../wgn.cfc: Internal Server Error [Enable debugging by adding 'cfdebug to your URL parameters to see more info]" I am working on my local machine and testing as localhost. Running WinXP Pro with sp3. Using ...

ColdFusion & Ajax: How to Get Blank Row in Binded Select Box?

I have two cfselect boxes that use binds and a cfc. One is State. Choose a State, and the second cfselect (counties) is populated on the fly. Prior to doing this with the bind attribute, I relied on the queryPostion="below" attribute such as the following to basically put a blank row into the option box. I want to do the same thing f...

CFC extends sibling folder

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"/sibling folder without access to parent folders. This solution requires access to parent folders? (Not sure what these mappings are, but I have...

Help getting, or displaying, random records in ColdFusion from a MySQL query?

I've got a jquery roller/scroller that displays snippets of records returned from my 'Helpful Hints' database table query. I want to keep the scroller to about 15 records but not always the first 15 records. Is it more efficient to write a query like: SELECT * FROM table ORDER BY RAND() LIMIT n Which returns a random result or do I ...