Re: Wait for File to Get Written

2012-05-30 Thread Jochem van Dieten
On Wed, May 30, 2012 at 1:03 AM, Mary Jo Sminkey wrote: Basically I have situations where I need to wait for ColdFusion to finish creating a file before displaying it. The legacy code I'm working with using a cfexecute to run an executable file, and it uses this code snippet: cfloop

ColdFusion Developer Week - 4th and 8th June, 2012

2012-05-30 Thread Rakshith N
Hi All, We are conducting the 2nd ColdFusion Developer week happening from 4th – 8th June 2012. (Register here: http://adobe.com/go/cfdeveloperweek ) With the launch of ColdFusion 10, we are back with the 2nd ColdFusion Developer Week, a series of free, live webinars hosted by seasoned

Re: Wait for File to Get Written

2012-05-30 Thread Mary Jo Sminkey
maybe use cfdirectory and look at 'dateLastModified' to wait for it to be 2~5 old (so you know it has finished writing to it) Well, not sure that has any benefit by itself versus just checking if the file exists. I would make a retry loop, say 5 times with a sleep in between and break out if

Re: Wait for File to Get Written

2012-05-30 Thread Mary Jo Sminkey
If you just add a timeout to your cfexecute, CF will wait and continue when the legacy program is ready. Cool, yeah that looks like a good addition to this particular process. Mary Jo ~| Order the Adobe Coldfusion

Re: Wait for File to Get Written

2012-05-30 Thread Judah McAuley
You could also use cfthread. Spawn the execution off into another thread, then use the cfthread join action to make current processing wait until the child thread is finished and rejoined. Put your logic to check for file existence in the child thread where the execution of the external app is.

Another CFDOCUMENT SUCK?

2012-05-30 Thread Igor Ilyinsky
CFDOCUMENT has been the bane of my existence for years. Check out this simple dynamic PDF packaging code which should work... CFSET PAGEARRAY = [] / CFLOOP from=1 to=3 index=i CFDOCUMENT FORMAT=PDF NAME=PDFPAGE htmlbodydiv

Re: Another CFDOCUMENT SUCK?

2012-05-30 Thread Raymond Camden
Why not use one cfpdf with pagebreaks instead? On Wed, May 30, 2012 at 3:19 PM, Igor Ilyinsky i...@maverickmaven.com wrote: CFDOCUMENT has been the bane of my existence for years. Check out this simple dynamic PDF packaging code which should work... CFSET PAGEARRAY = [] / CFLOOP from=1

Re: Another CFDOCUMENT SUCK?

2012-05-30 Thread Igor Ilyinsky
Why not use one cfpdf with pagebreaks instead? Ray, this was a simple example to show the suckage. For the app, the data for various documents is coming from a database, and each one has different headers and footers. We already have all of the code which constructs the individual CFDocs

cflayout and CKEditor don't play well together...sometimes.

2012-05-30 Thread David Moore
I am using CF 9.1 on a Windows 2008 Web Server and have noticed another issue with cflayout(area). This (of course) only occurs in IE9. It works fine in Firefox. Let's say I build a cflayout page with 3 cflayoutareas (tabs). If I place a rich cftextarea (CKEditor) within tab 2 or 3 it does

Re: Another CFDOCUMENT SUCK?

2012-05-30 Thread Dave Watts
CFDOCUMENT has been the bane of my existence for years. Check out this simple dynamic PDF packaging code which should work... CFSET PAGEARRAY = [] / CFLOOP from=1 to=3 index=i CFDOCUMENT FORMAT=PDF NAME=PDFPAGE htmlbodydiv

Re: Another CFDOCUMENT SUCK?

2012-05-30 Thread Igor Ilyinsky
I would expect you can solve this problem by using unique names within your loop: cfloop from=1 to=3 index=i cfdocument ... name=pdfpage_01_#i#.../cfdocument ... cfdocument ... name=pdfpage_02_#i#.../cfdocument ... /cfloop We tried that Dave, it did not do

Re: cflayout and CKEditor don't play well together...sometimes.

2012-05-30 Thread Gerald Guido
FWIW JavaScript is notorious for being temperamental and causing problems when you start mixing JS libraries. You are using third party JS libraries along with the libraries used by CF. And practically speaking it is impossible to foresee and eliminate all possible conflicts when using multiple

Coldfusion and JQuery Toxeninput

2012-05-30 Thread Maureen
Are any of you using the jQuery Toxeninput plugin with Coldfusion, and if so do you have any code you could share on passing the JSON back and forth? I've read the instructions till my eyes are blurred with no success. ~| Order