coldfusion

timestamp case sensetive

Is the function Now() in ColdFusion case sensitive? Can I use now() instead of Now()? ...

ColdFusion - converting HTML webpage to Word or PDF document

I have a webpage, where user has a possible to Print this page OR to save it on his/her computer. How may I save it as a Word or PDF document? Thanks. ...

changing CF9 root directory wwwroot to Sites on mac

Hi, I have installed CF9 development edition and would like to change the web folder to Sites on my mac rather than wwwroot in the coldfusion 9 folder. Any ideas how I can achieve this? Thanks, R. ...

Why do duplicate (and unwanted) inserts occur in mySQL?

The strangest thing has occurred with one of my apps (Flash/Coldfusion/mySQL). I use a simple INSERT statement to save member details into my table. The table has a Primary Key on the memberID. Recently, one of my entries was saved multiple times (not supposed to happen). The datetimestamp shows the save occurred at the identical time. T...

<cffile action="Read"> not getting the desired up-load loaction

I am using CF-8,windows-XP and IE 5.5. I am using simple tag namely . but the output i am getting is pure gibberih along witht the text of the file(word document) upld.cfm <cffile action="read" file="C:\ColdFusion8\wwwroot\Proj\updl\fileDisk\SOL.doc" variable="fileDisk" > <cfoutput>#fileDisk# </cfoutput> <cfou...

Check health of scheduled tasks?

We recently had an issue where a ColdFusion scheduled task didn't resume after a Windows upgrade and a CF server restart. Is there a way to monitor the health of scheduled tasks and be alerted if they are not running properly? Or would I need to write a task to parse the log files for that information? ...

Using cfdocument to generate PDF

Hi all, The actual table is a lot larger than the mock-up one that I am going to show you but this mock-up one does explain the problem. Please go to http://www.monteandjanicechan.com/test_table.cfm The thickness of the grid lines in the table are coming up the way I want in the HTML version. You can do a View Source to see the actua...

Create Wufoo webhook with PUT request in ColdFusion

Hello, I'm having troubles with building correct PUT request to the Wufoo. In all my attempts I see the same error: 404 A WebHook must contain a url parameter. Here is the version with JSON data type: <cfset local.action = "forms/#local.formHash#/webhooks.json" /> <cfset local.request = {"url" : local.webHookURL, "handshakeKey" : l...

GetHttpRequestData() and Soap Web Service Request in Coldfusion 8

Hello Everyone, Currently, we are using GetHttpRequestData().headers to get real IP address of User. However, we are facing following issue. when we try to call Soap web service request, we receive following error Premature end of file. I already searched the web and found out that there is bug in Coldfusion 8.0. I don't know if this ...

How can I read the available options of a drop-down in a PDF Form using ColdFusion?

I have a PDF with an embedded form. This form has inputs and drop-downs. I want to read the data out of the form, so that I can create my own HTML form from it. This works fine for the most part - I can get the field names and labels - however, I have no way of reading the available options in a drop-down field in the form. Is there any ...

Coldfusion concurrent ajax post

Hi All, I'm creating a script for uploading and processing something. user upload an excel file in the destination script, the excel data are converted to a query the query converted to json using SerializeJSON and then this json data is submitted one by one using ajax and setInterval function currently the interval for setInverval...

Checking for no input in dynamic fields

Basically, I have a form that generates a certain number of "types of publications" depending on "departments" input before someone is filling out this form. (Department specific publication types that are recognized.) There are a couple of fields that go with each publication type...(they are the same fields, so each type will have ...l...

Trouble with SQL UNION operation

I have the following table: I am trying to create an SQL query that returns a table that returns three fields: Year (ActionDate), Count of Built (actiontype = 12), Count of Lost (actiontype = a few different ones) Bascially, ActionType is a lookup code. So, I'd get back something like: YEAR CountofBuilt CountofLost ...

Can CFFILE support simultaneous writes to the file system?

We have written a feature that allows our users to upload a file to a nas device using UNC path. The feature has not been stressed tested and I'm not 100% convinced CFFILE can handle the load. Does cffile use multi-threading to perform writes to the file system and what kind of load can cffile support? ...

How can I send an array variable to a ColdFusion CFC remote method via ajax using jQuery?

I have a ColdFusion CFC function like this: <cffunction access="remote" name="getResults" returntype="struct" returnformat="JSON" output="no"> <cfargument name="q" required="true" type="array" /> ... </cffunction> How do I call this function from jQuery? Neither form of array encoding by jQuery will get ColdFusion t...

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

ColdFusion EntityLoad Filter

How would I in ColdFusion add <= in my Filter Criteria. I was trying this EntityLoad("Entity",{someProperty <= value}); but with no luck ...

Coldfusion iPhone image upload

We have an existing web page which lets users upload images to the server. We would like to stretch it out so that iphone users can also upload images in this web form. Any ideas or third party tools? I also found http://www.cliqcliq.com/support/quickpic/ but there no sample in coldfusion. Thanks! ...

ColdFusion: Integer "0" doesn't convert to ASCII character

I have a string (comprised of a userID and a date/time stamp), which I then encrypt using ColdFusion's Encrypt(inputString, myKey, "Blowfish/ECB/PKCS5Padding", "Hex"). In order to interface with a 3d party I have to then perform the following: Convert each character pair within the resultant string into a HEX value. HEX values are th...

I need help deciding if I should use cflock or not

I would like to know if locking my table is necessary in this situation (I'm using Coldfusion and MySQL): I have a table called wishlists(memberId, gameId, rank, updateAt) where members store games in a personal list. wishlists has a man-to-many with a members table, and many-to-many with a games table. Many members have many games sto...