coldfusion

ColdFusion - Creating column names dynamically with CFLOOP

I have a table that records the name of uploaded documents, up to 14 per record. The columns are named thus: TABLE tblDocuments COLUMNS documentID (int, not null, pk) document1 (varchar(250), null) document2 (varchar(250), null) /* and this continues through */ document14 (varchar(250), null) So I que...

cfusion_encrypt php alternative

Does anybody know any php alternative to coldfusion's cfusion_encrypt? Currently cfusion_encrypt is still used via curl and its trouble since the cf server keeps going down. It would be a lot better if anyone could give me a php alternative to this function. Thanks. ...

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 ...

How to index records in Solr faster (and not impact ColdFusion web server)? Two JVM?

I have a 64 bit server, 8 GB RAM, dual quad CPU. No resources are ever hitting 100% (except, I guess, the JVM -- right?). I need to index several million records for Solr, but the machine is in production. I recognize having a second machine for indexing would be helpful. Should I dedicate a second instance of the JVM, dedicated to Sol...

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...

ColdFusion - how to set Content-Length header

Has anyone successfully added a Content-Length header to regular ColdFusion (I'm using CF9) pages? I'm setting up a new server behind a Cisco load balancer with compression - the box refuses to compress anything without this header, but CF doesn't pass it by default. <cfheader name="Content-Length" value="something" /> will set the head...

COLDFUSION :: looking for guideline to upload image and then send as e-mail attatchment

I have a form that can be used to uplocad pictures, and after uploading the pictures will be sent as e-mail attatchemnt to website admin and then the images will be deleted from Server. Any guide line? Thanks in advance. ...

Coldfusion Web Service Error -

Hello Everyone, Here is my coldfusion web service. When I use soapUI tool to call 'test', i am receiving this "<ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/"&gt;org.xml.sax.SAXParseException: Premature end of file." error. can anyone help me on this issue? I already seached online, but no luck. any code issue? do I need...

IIS7 Hijacks My Coldfusion Error Page

In my exception handling file, I set a statuscode to 404 and then render n HTML page, for the error page (think fail-whale). <cfheader statuscode="404" statustext="Application Exception"> <html><head><title>Error</title></head><body><h1>There was an error yo!</h1></body></html> This is obviously over simplified, but just to make sure...

coldfusion remove unnecessary output

Hi All, I have an output page like this <!-- some css --> <!-- some js --> the body of content is here unfortunatelly the css & js is always included before content body. how can we remove the css and js so the output is just content body? I can't change the way how css & js rendered in the page because it's part of the framework ...

Parse CFML tags in PHP

Background: I have been running a site on the blogger platform for the past 5 years. I was using the option of hosting the site on my own server, publishing via FTP. My server is running ColdFusion, so I decided to take advantage of that. I created Coldfusion custom tags that provided additional functionality and included those in ma...

ColdFusion Arrays and Variables

Hey guys, I really am stuck here. I keep getting an error on this code and I have absolutely no idea why. Basically what I am trying to do is check a form for a field called quantity_# with # being a number. If it finds it I want to go through all those fields and add them onto a 2 dimension array so I can store the actual value of that ...

CFFlush doesn't seem to work in Chrome and IE

Hello, I have a script that needs to submit to an iframe and get a return value. However, the coldfusion page i am submitting to needs to do additional processing that has nothing to do with the return value, so I want to return the value to the iframe and then redirect the iframe to about:blank before doing the rest of the processing s...

Sorting on Column in Type Table with ColdFusion ORM

Hi all, I have three tables, with the following structure: http://dl.dropbox.com/u/2586403/ORMIssues/TableLayout.png The three objects I'm dealing with are here: http://dl.dropbox.com/u/2586403/ORMIssues/Objects.zip I need to be able to get a PartObject, and then pull all of its Attributes, sorted by the AttributeName in the Type...

Determine form input type from its ID returned in JSON columns

I'm returning data via JSON and attempting to loop through the JSON dataset to dynamically populate a form. I need to reference a particular field TYPE (select, text, checkbox etc) via that field's id attribute. The id attribute I'm matching against is coming through in the JSON columns. i.e. each column value in JSON corresponds to a fo...

Is there a reason/setting that would prevent a Coldfusion server from running recursive functions

I am using Hostek.com, shared hosting, and can't seem to get a recursive function to run. ...

Coldfusion 9 Encryption Key from Java Byte Array

I am working on a project where we are passing encrypted data between C#, Java and ColdFusion applications. To generate the key and iv for 256 bit AES encryption. I have the following array which I need to convert in ColdFusion 9 to useable key The Java Code for the Key new byte[]{ (byte)172, (byte)181, (byte)241, (byte)2...

securing remote CFCs in Coldfusion

I'm having a lot of trouble finding information about securing remote functions on Coldfusion CFCs for AJAX calls. Lets say you're retrieving sensitive information for a user after the user logs in to the site via an AJAX call. You call something like this: https://www.mySite.com/pathToCFC/MyCFC.cfc?method=getBankInfo&amp;userID=2343 ...

ColdFusion: More efficient structKeyExists() instead of isDefined()

Which of these is more efficient in ColdFusion? isDefined('url.myvar') or structKeyExists(url, 'myvar') ...

How do I generate an OpenOffice Draw document?

I want to create a flowchart in OpenOffice Draw. Since there's a lot of steps to show (and may change in future) but I can extract the data, I want to automate the creation with the following steps: Create a new ODG document with specified page settings. Insert flow chart shapes with specified properties. Connect those things with arr...