Create/Read/Update/Delete to an XML file
Are there a set of commands used to perform CRUD on an XML file? I'm envisioning a component (myData.cfc) that has a Save function (Insert/Update), a Delete function and a Read function. ...
Are there a set of commands used to perform CRUD on an XML file? I'm envisioning a component (myData.cfc) that has a Save function (Insert/Update), a Delete function and a Read function. ...
I want to: on every page, check if a file exists include that file if TRUE i.e.: <cfset variables.includes.header = ExpandPath("_inc_header.cfm")> <cfif FileExists(variables.includes.header)> <cfinclude template = "_inc_header.cfm"> </cfif> Is this a good idea? edited to use just "_inc_header.cfm" as the template Alternati...
Right now we are dealing with a bit of a conundrum in my corporate environment where we are being blamed for a server crash, but I'm not 100% sure we are the culprit. Here's the server environment: We have a primary Coldfusion and its MSSQL database. We then also have a secondary database (MySQL) hosted on a different cloud which is used...
I'm having an issue when I try to nest pound signs in my ColdFusion code. I keep getting the following error message: Invalid CFML construct found on line 57 at column 26. ColdFusion was looking at the following text: # Here is the code: <cfloop index="i" from="1" to="12"> <cfset needRecord.setNeed#i#(#form["need#i#"]#)...
My client has multiple companies; different names/logos etc, but all the content on the sites are identical with the exception of said names/logos. In a ColdFusion environment, what would be the best way for me to serve up identical content and swap out the logos/company names on the fly so I can keep everything in one spot? Is this a j...
In Adobe Flex, it is possible to declare a public function, which can be overridden in a class that extends that function's class: public class class1 { public function method1 { public var var1:string = "hello world"; } } public class class2 extends class1 { override public function method1 { alert.show(sup...
UPDATE: I managed to get this thing working! Turns out, you NEED to send a secure ticket with the call to get a proper response. I have no idea why it worked in Poster without it. There are a couple other parameters that are required which ColdFusion apparently doesn't send by default. Here is a working call: <!---MyTicketValue is sen...
Hi, 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 ...
I am trying to post to twitter. I have the app already authenticated and now want to post an update. This is what my http post is at: <cfhttp url="http://api.twitter.com/1/statuses/update.json" method="post"> <cfhttpparam type="header" name="status" value="#urlEncodedFormat('my test post')#" /> <cfhttpparam type="header" name="oauth...
Is there a built-in way to join two arrays in ColdFusion, similar to JavaScript's array.concat()? ...
I Need help with ColdFusion, I want to use the CF9 ajax library, I've got <cfajaximport tags="cfform"> in my header, and included a form using <cfdiv bind="url:domainchecker.cfm"> This however replaces the entire form with the "Loading" ajax wheel then shows the results. What I need, is for the form to submit, but the a separate result...
I have this nice big Dev Kit written in PHP, but the application I'm currently developing is in CFML. In an attempt to avoid rewriting the PHP, I'm going to try to just wrap the PHP in CF <script> tags and call the PHP functions when I need them. Does anyone have any idea how to call one of those PHP functions inline in CF? ...
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="" /> <cfquery datasource='#arguments.dsn#'> INSERT INTO users(expiry) VALUES (<cfqueryparam value="#arguments.expiry#" cf...
This works with a mySQL backend In the form... <cfselect name="to" size="1" bind="cfc:cfcs.messages.getOrganisations()" bindonload="yes" value="organisationID" display="organisationName" required="Yes"> </cfselect> in the cfc <cffunction access="remote" name="getOrganisations" output="false" returntype="query" displayname="G...
CF9, Windows Server 2008 Standard, IIS7, mySQL 5.1.48 community. I have managed to get CF to take a database mySQLdump which I was going to run as a nightly cfschedule task, with a server time based lock on the application controlled in application.cfc That will get me a local copy, but whats the best strategy to encrypt the datadump....
We've been dealing with a problem with our event gateways since we upgraded from ColdFusion 8 Enterprise to ColdFusion 9 Enterprise. We have an event gateway setup to establish a connection to a third party. They went us updates at least every 10 seconds and sometimes many times a second. We have a Java class configured as the Event ...
How should I add a cfschedule task to an app using the Coldbox framework? Should I: a.) write an event that does what the task, and point cfschedule to that URL with Coldbox? b.) write a simple .cfm outside of coldbox? Is one better than the other? Thanks. ...
I have multiple sites on my coldfusion webserver. I want to make a new site that does not allow coldfusion to run. At the same time I do not want to disable coldfusion on the other sites. I am running coldfusion standard edition. ...
I'm using Ben Nadel's iFrame Upload function for an editing tool on a site I'm working on. I'm learning jQuery. The function works beautifully. It's part of a reuseable modal window and everything works. But, I want to dynamically tell the function where the call came from so it loads the proper form into the modal window. How would I pa...
Is there a way to restart a coldfusion application without starting the entire server? There are two coldfusion applications running on a server and I only want to restart one of them. ...