Re: calling a template but not waiting for it to finish running

2010-03-09 Thread Ian Skinner

On 3/9/2010 1:20 PM, Matthew Smith wrote:
>> you can also do a  with a timeout value of 0.
>>  
> Much easier.  Any drawbacks?  I don't need any values back from the request,
> I just need it to run.
>

Other than it is much more limited in capabilities then the modern 
 equivalent, if it meets your needs within its limitations 
the is nothing wrong with the technique.  Just realize that there is 
*zero* way to know what the results of the abandon request was, so if it 
is throwing errors or not doing what it is supposed to be doing, it is 
not going to be telling you of its problems.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331502
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: calling a template but not waiting for it to finish running

2010-03-09 Thread Matthew Smith

>you can also do a  with a timeout value of 0.

Much easier.  Any drawbacks?  I don't need any values back from the request,
I just need it to run.

On Tue, Mar 9, 2010 at 1:48 PM, Ian Skinner  wrote:

>
> On 3/9/2010 11:36 AM, Wil Genovese wrote:
> > Another way is to use AJAX.
> >
> > Wil
> >
>
> Yet another way, if you want to go old school - before the days of
>  you can also do a  with a timeout value of 0.
>
> Another new school way that may be relevant, is ColdFusion gateways.
> Really depends on what one is actually trying to accomplish.
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331498
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: calling a template but not waiting for it to finish running

2010-03-09 Thread Jon Sala

Yes, find it clean to set up a gateway instance and then call 
SendGatewayMessage() for background processing.
Not sure if Matthew's Crystaltech will let him access that.



-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com]
Sent: Tuesday, March 09, 2010 12:48 PM
To: cf-talk
Subject: Re: calling a template but not waiting for it to finish running


On 3/9/2010 11:36 AM, Wil Genovese wrote:
> Another way is to use AJAX.
>
> Wil
>

Yet another way, if you want to go old school - before the days of 
 you can also do a  with a timeout value of 0.

Another new school way that may be relevant, is ColdFusion gateways.
Really depends on what one is actually trying to accomplish.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331489
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: calling a template but not waiting for it to finish running

2010-03-09 Thread Ian Skinner

On 3/9/2010 11:36 AM, Wil Genovese wrote:
> Another way is to use AJAX.
>
> Wil
>

Yet another way, if you want to go old school - before the days of 
 you can also do a  with a timeout value of 0.

Another new school way that may be relevant, is ColdFusion gateways.  
Really depends on what one is actually trying to accomplish.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331487
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: calling a template but not waiting for it to finish running

2010-03-09 Thread Bobby

Check out cfthread.

-Original Message-
From: Matthew Smith [mailto:chedders...@gmail.com] 
Sent: Tuesday, March 09, 2010 2:22 PM
To: cf-talk
Subject: calling a template but not waiting for it to finish running


I have some code that I would like to run with each page request, but it
might take a while and I'd like to not have to wait for it to finish
running.

So basically, I'd like to initiate a template in Application.cfm, without a
cfinclude.  Is this possible?

This will be on crystaltech, a shared hosting enviroment, so please keep in
mind the tag restrictions.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331484
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: calling a template but not waiting for it to finish running

2010-03-09 Thread Wil Genovese

If you are using CF8 or CF9 - I'd looked into what can be done with
cfthread. And I would not put that into the Application.cfm  (should be
using Application.cfc anyways - you can do more with it), that kind of code
should be executed from your controller for every page request.  Spawn the
thread at the beginning of the request then gather the results in at the end
of the request.

Another way is to use AJAX.

Wil

On Tue, Mar 9, 2010 at 1:22 PM, Matthew Smith  wrote:

>
> I have some code that I would like to run with each page request, but it
> might take a while and I'd like to not have to wait for it to finish
> running.
>
> So basically, I'd like to initiate a template in Application.cfm, without a
> cfinclude.  Is this possible?
>
> This will be on crystaltech, a shared hosting enviroment, so please keep in
> mind the tag restrictions.
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331483
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: calling a template but not waiting for it to finish running

2010-03-09 Thread Matthew Smith

cool, I'll check it out.

On Tue, Mar 9, 2010 at 1:17 PM, Peter Boughton  wrote:

>
> Read up on "threading", which CF implements with the cfthread tag.
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331482
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: calling a template but not waiting for it to finish running

2010-03-09 Thread Peter Boughton

Read up on "threading", which CF implements with the cfthread tag. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm