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
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
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
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
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.
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
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
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
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
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
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
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
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
13 matches
Mail list logo