Re: PDF Populate and readBinary Data

2012-07-05 Thread Ria Ragam

Thanks again.
Let me explain with steps.
1. Have an interactive PDF.
2. Populate data to pdf but do not open to the brower.
3. convert populated PDF into binary and write to database.

4. At the end of the day, all these PDF's are downloaded depends on search 
criteria. (I am not worried about this. This step can be done easily).
I tried using cfsavecontent and it is still populating the PDF in brower.




AM I doing something wrong here?

> > Is it not true that as soon as I populate fields, if opens PDF right 
> away. I want to save a PDF with populated fields into binary and then 
> use it for later.
> 
> I guess I misunderstood what you were asking for, originally.
> 
> You can either have it written to the browser or you can write it to
> the filesystem. I'm not sure what you mean by "use it for later", but
> if you don't want to write it to the filesystem at the end of your
> CFPDFFORM operation, you might be able to capture it with
> CFSAVECONTENT.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
> 
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351849
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: In CF 10, how to force session to end when browser is closed

2012-07-05 Thread Byte Me

>you also need to remember that most people who decide to learn CF do not
>know OOP, and CFML was never originally intended for that audience, it
>was supposed to be an easy to learn tag based language.
>Not everyone wants to use CFC's
>
>
>On Thu, Jul 5, 2012 at 7:00 PM, Dave Watts  wrote:
>
>>

I suppose your right. When I started using Coldfusion (version 7), I used 
CFC's. I never used/learned Application.cfm. The books I learned it from, Ben 
Forta's Web Application Construction Kit series, taught CFC's. 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351848
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: In CF 10, how to force session to end when browser is closed

2012-07-05 Thread Byte Me

OK, finally figured it out through trial and error. Did not find (complete) 
documentation that explained how to do this. Set this in the Application.cfc 
(beneath the  tag)  and 
this will cause the cfid & cftoken cookies "Expires" attribute to be set to 
"When I close my browser". Note: if you are using a shared server & "Disable 
updating Coldfusion internal cookie using Coldfusion tags/functions" is 
checked, you can override it by putting  in the Application.cfc, which gives 
control back to you, otherwise cfid & cftoke will expire at whatever interval 
is set in CF Admin. In OnSessionStart, you can set the cookies like this: 
  or like this:  
, just make sure you don’t use the 
expires attribute when setting them.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351847
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: In CF 10, how to force session to end when browser is closed

2012-07-05 Thread Russ Michaels

you also need to remember that most people who decide to learn CF do not
know OOP, and CFML was never originally intended for that audience, it
was supposed to be an easy to learn tag based language.
Not everyone wants to use CFC's


On Thu, Jul 5, 2012 at 7:00 PM, Dave Watts  wrote:

>
> > I'm not sure why Adobe is still using Application.cfm in there examples,
> aren't they aware that this was replaced with
> > Application.cfc in Coldfusion 7?
>
> Lots of people still use Application.cfm, for various reasons.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351846
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: In CF 10, how to force session to end when browser is closed

2012-07-05 Thread Dave Watts

> I'm not sure why Adobe is still using Application.cfm in there examples, 
> aren't they aware that this was replaced with
> Application.cfc in Coldfusion 7?

Lots of people still use Application.cfm, for various reasons.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351845
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: In CF 10, how to force session to end when browser is closed

2012-07-05 Thread Byte Me

OK, thanks, I will have to read up on this. What a pain it is to upgrade. Heres 
another link: 
http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d3185183e145c0d1353e31f559-7ffc.html
 

I'm not sure why Adobe is still using Application.cfm in there examples, aren't 
they aware that this was replaced with Application.cfc in Coldfusion 7? 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351844
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Close CFDocument window?

2012-07-05 Thread Billy Cox

Hello all,

I have a form that submits to an action page containing a CFDocument tag in
a new window. The action page sends the PDF output directly to a printer
using CFPrint, soI end up with a new blank window.

I have been trying *unsuccessfully* to close that new blank window
programmatically so that I don't have to train users to do it. Any ideas?

What I have tried is to set a javascript timer in the submitting page to
close the child window after x number of seconds. I have also tried using
cfthrow in the action page to catch a custom error that could then use
javascript to close the window.

btw, cfprint is a workaround to allow printing to a non-AirPrint device
from Safari on an iPad.


Thanks,
Billy Cox


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351843
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multi-Server install *help*

2012-07-05 Thread Al Musella, DPM

You might be better off installing cf9 on the machine, then using 
windows virtual  pc to create 2 seperate instances - one with cf7 and 
one with cf10.. they will have different ip addresses, but you can 
use a host file to name them something..  this way you can launch 
them only when needed and can play with them and test various options easier.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351842
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: In CF 10, how to force session to end when browser is closed

2012-07-05 Thread Dave Watts

> Just tried your suggestion, but cfid & cftoken gets set with an expires time 
> based on the "Session Cookie Settings"
> in the CF10 Administrator (minimum setting is 2 minutes) & that setting 
> cannot be disabled & it cannot be overridden.
> However, that setting can be overridden by other cookies, such as  name="myCookie" value="hello world">,
> which gets set with expires="When I close my browser".

There's a checkbox in CF 10 which prevents you from manipulating
session cookies if checked. Uncheck it.

http://www.shilpikhariwal.com/2012/02/how-to-secure-coldfusion-session.html

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: In CF 10, how to force session to end when browser is closed

2012-07-05 Thread Byte Me

Just tried your suggestion, but cfid & cftoken gets set with an expires time 
based on the "Session Cookie Settings" in the CF10 Administrator (minimum 
setting is 2 minutes) & that setting cannot be disabled & it cannot be 
overridden. However, that setting can be overridden by other cookies, such as 
, which gets set with 
expires="When I close my browser". 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351840
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm