RE: Googlemail

2008-10-19 Thread Adrian Lynch
I'm not sure if I'm answering the right question, but...

I currently connect to a Google hosted email account with the
following(taken from a CFC):

cfmail
to=#VARIABLES.to#
from=#VARIABLES.from#
subject=#VARIABLES.subject#
server=#VARIABLES.server#
port=#VARIABLES.port#
username=#VARIABLES.username#
password=#VARIABLES.password#
useSSL=true
#VARIABLES.message#/cfmail

The useSSL bit is the part that you're most likely missing.

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-Original Message-
From: Phillip M. Vector
Sent: 19 October 2008 03:16
To: cf-talk
Subject: Googlemail


I have a client who wants to have a site that needs cfmail
authentication (cfmail username='[EMAIL PROTECTED]' password='Foo'
server='mail.Foo.com')

The only problem is that he wants to keep Google as his main mail
server. I suggested just getting a gmail account and forwarding the
messages, but it doesn't work.

I SUSPECT the cfmail tag is calling the server and trying to get
authorization, but not able to. When it was on a site that didn't need
it, it worked fine. When I tried it on the same server as now with no
dns changes, it worked fine.. Now, it's not working when it's being
redirected to googles servers.

Is there something special I need in the tag to work with the google
email server for authentication? Anyone else ever run into this issue?
Should I tell my client Tough? :)


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314102
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cfimage - resize then force download?

2008-10-19 Thread Craig Dudley
Think you'll have to force the download of the resized image but can't you use 
cfcontent to delete it with deletefile=true ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 19, 2008 3:23 AM
To: cf-talk
Subject: cfimage - resize then force download?

I am sure I am probably not the first person to want to do this but I can't 
find the answer anywhere.

I am writing an image library and would like to do the following:
- load the full size image using CFFILE
- resize it
- force it to download

I know I can force a download with cfheader/cfcontent but can I combine that 
with cfimage, or will I need to save the file after resizing, and then point to 
that one? Just trying to keep it tidy.

Thanks,
Mark King





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314103
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Googlemail

2008-10-19 Thread Phillip M. Vector
Thanks. :)

Adrian Lynch wrote:
 I'm not sure if I'm answering the right question, but...
 
 I currently connect to a Google hosted email account with the
 following(taken from a CFC):
 
 cfmail
   to=#VARIABLES.to#
   from=#VARIABLES.from#
   subject=#VARIABLES.subject#
   server=#VARIABLES.server#
   port=#VARIABLES.port#
   username=#VARIABLES.username#
   password=#VARIABLES.password#
   useSSL=true
 #VARIABLES.message#/cfmail
 
 The useSSL bit is the part that you're most likely missing.
 
 Adrian
 Building a database of ColdFusion errors at http://cferror.org/
 
 -Original Message-
 From: Phillip M. Vector
 Sent: 19 October 2008 03:16
 To: cf-talk
 Subject: Googlemail
 
 
 I have a client who wants to have a site that needs cfmail
 authentication (cfmail username='[EMAIL PROTECTED]' password='Foo'
 server='mail.Foo.com')
 
 The only problem is that he wants to keep Google as his main mail
 server. I suggested just getting a gmail account and forwarding the
 messages, but it doesn't work.
 
 I SUSPECT the cfmail tag is calling the server and trying to get
 authorization, but not able to. When it was on a site that didn't need
 it, it worked fine. When I tried it on the same server as now with no
 dns changes, it worked fine.. Now, it's not working when it's being
 redirected to googles servers.
 
 Is there something special I need in the tag to work with the google
 email server for authentication? Anyone else ever run into this issue?
 Should I tell my client Tough? :)
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314104
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfregistry, but not really

2008-10-19 Thread Phillip M. Vector
I have a hosting company that restricts access to cfregistry. Not a 
problem as I never use that tag..

They recently put me in their sandbox (which worked before) and I got 
the error..

Security: The requested template has been denied access to cfregistry.
The following is the internal exception message: access denied 
(coldfusion.tagext.GenericTagPermission cfregistry)

Wha? So I turned on my security sandbox on my dev site, restricted 
cfregistry and tried it out. I got the same error. This was the code 
that it said was messed up.

cfsilent
cfapplication
name=Cimex
sessionmanagement=Yes
sessiontimeout=#CreateTimeSpan(0,0,30,0)#
clientmanagement=Yes
/cfsilent

Wha?

Anyone know what is happening here?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314105
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfregistry, but not really

2008-10-19 Thread s. isaac dealey
 Wha? So I turned on my security sandbox on my dev site, restricted 
 cfregistry and tried it out. I got the same error. This was the code 
 that it said was messed up.
 
 cfsilent
 cfapplication
   name=Cimex
   sessionmanagement=Yes
   sessiontimeout=#CreateTimeSpan(0,0,30,0)#
   clientmanagement=Yes
 /cfsilent
 
 Wha?
 
 Anyone know what is happening here?

Yup. Client management by default uses the registry on Windows servers
to store client data. You need to specify a storage medium for client
variables other than registry. Options are cookie (make sure you don't
put any identifying info in it), or set up your database as a client
variable store, which I think you'll have to ask the hosting provider to
do because I think it has to be done in the CF Administrator. You might
be able to add the tables manually, but I'm not sure if CF would
recognize it as a valid client storage db without having been set up in
the admin anyway.

hth



-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
 ph: 781.769.0723

http://onTap.riaforge.org/blog



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314107
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfregistry, but not really

2008-10-19 Thread Phillip M. Vector
EXCELLENT! Thank you very much. :)

Charlie Griefer wrote:
 On Sun, Oct 19, 2008 at 9:33 AM, Phillip M. Vector 
 [EMAIL PROTECTED] wrote:
 
 I have a hosting company that restricts access to cfregistry. Not a
 problem as I never use that tag..

 They recently put me in their sandbox (which worked before) and I got
 the error..

 Security: The requested template has been denied access to cfregistry.
 The following is the internal exception message: access denied
 (coldfusion.tagext.GenericTagPermission cfregistry)

 Wha? So I turned on my security sandbox on my dev site, restricted
 cfregistry and tried it out. I got the same error. This was the code
 that it said was messed up.

 cfsilent
 cfapplication
name=Cimex
sessionmanagement=Yes
sessiontimeout=#CreateTimeSpan(0,0,30,0)#
clientmanagement=Yes
 /cfsilent

 Wha?

 Anyone know what is happening here?

 
 That'd probably be the fact that you've got clientmanagement set to yes.
  Client variables are stored in the registry by default.
 
 If you're not using client vars, set that to false.
 If you are, set clientStorage attribute to the appropriate datasource
 name.
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314108
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfregistry, but not really

2008-10-19 Thread Phillip M. Vector
Yeah. I don't use it anyway, so I just set it to false. Thanks again 
guys.. :)

s. isaac dealey wrote:
 Wha? So I turned on my security sandbox on my dev site, restricted 
 cfregistry and tried it out. I got the same error. This was the code 
 that it said was messed up.

 cfsilent
 cfapplication
  name=Cimex
  sessionmanagement=Yes
  sessiontimeout=#CreateTimeSpan(0,0,30,0)#
  clientmanagement=Yes
 /cfsilent

 Wha?

 Anyone know what is happening here?
 
 Yup. Client management by default uses the registry on Windows servers
 to store client data. You need to specify a storage medium for client
 variables other than registry. Options are cookie (make sure you don't
 put any identifying info in it), or set up your database as a client
 variable store, which I think you'll have to ask the hosting provider to
 do because I think it has to be done in the CF Administrator. You might
 be able to add the tables manually, but I'm not sure if CF would
 recognize it as a valid client storage db without having been set up in
 the admin anyway.
 
 hth
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314109
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfregistry, but not really

2008-10-19 Thread Charlie Griefer
On Sun, Oct 19, 2008 at 9:33 AM, Phillip M. Vector 
[EMAIL PROTECTED] wrote:

 I have a hosting company that restricts access to cfregistry. Not a
 problem as I never use that tag..

 They recently put me in their sandbox (which worked before) and I got
 the error..

 Security: The requested template has been denied access to cfregistry.
 The following is the internal exception message: access denied
 (coldfusion.tagext.GenericTagPermission cfregistry)

 Wha? So I turned on my security sandbox on my dev site, restricted
 cfregistry and tried it out. I got the same error. This was the code
 that it said was messed up.

 cfsilent
 cfapplication
name=Cimex
sessionmanagement=Yes
sessiontimeout=#CreateTimeSpan(0,0,30,0)#
clientmanagement=Yes
 /cfsilent

 Wha?

 Anyone know what is happening here?


That'd probably be the fact that you've got clientmanagement set to yes.
 Client variables are stored in the registry by default.

If you're not using client vars, set that to false.
If you are, set clientStorage attribute to the appropriate datasource
name.

-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314106
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfimage - resize then force download?

2008-10-19 Thread Jason Fisher
Assuming you're talking about using CFIMAGE to write the image to memory, the 
name attribute gives you the image back as a binary variable, which you can 
then include in the CFCONTENT variable:

cfcontent type=image/* variable=#cfimageVariableName#

Ben Nadel did something similar with pulling a stream directly from the DB:

http://www.bennadel.com/blog/1274-Ask-Ben-Streaming-Binary-Data-From-The-Database-BLOB-To-The-User-Using-ColdFusion.htm

-jfish

 I am sure I am probably not the first person to want to do this but I 
 can't find the answer anywhere.
 
 I am writing an image library and would like to do the following:
 - load the full size image using CFFILE
 - resize it
 - force it to download
 
 I know I can force a download with cfheader/cfcontent but can I 
 combine that with cfimage, or will I need to save the file after 
 resizing, and then point to that one? Just trying to keep it tidy.
 
 Thanks,
 Mark King
 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314110
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfimage - resize then force download?

2008-10-19 Thread C S
 Think you'll have to force the download of the resized image but can't 
 you use cfcontent to delete it with deletefile=true ?

You could also try extracting the image bytes and using cfcontent's variable 
attribute. 

Leigh 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314111
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFConversations 19: The first in a series of frameworks roundtable podcasts is up!!!

2008-10-19 Thread Brian Meloche
http://www.cfconversations.com/index.cfm/2008/10/19/CFConversations-19-Roundtable-6-Controller-based-Frameworks-Part-1

Enjoy!

Sincerely,

Brian Meloche
brianmeloche at gmail dot com
Producer and Host, CFConversations Podcast
http://www.cfconversations.com
Blog: http://www.brianmeloche.com/blog/
Adobe Community Expert:
http://www.adobe.com/communities/experts/members/BrianMeloche.html
Twitter: http://twitter.com/coofuushun
Pownce: http://pownce.com/bmeloche
User Group Manager,
Cleveland ColdFusion Users Group,
http://www.clevelandcfug.org


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314112
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Array confusion

2008-10-19 Thread Steve Grosz
Yes, it is a tournament ranking, with ratings available between a-e, and u 
(unrated).

I am storing the number of each rating, so A 5, B 2, C 0, etc (with no commas) 
and then passing that info on to a CFC that takes the total number of people in 
the event, plus the number in each rating, and does some calculations on them.

The problem I'm having is that if there are 2 different groups, how to get each 
one to have its own set of rating info and total number of people.

So, group 1 is always going to be there, and will have the A-E  U ratings, 
number of each, and total number of participants, but if there is another group 
(determined by url variable, how to loop over the entire array again, assigning 
those same array options A-E  U ratings, number of each rating, and total 
number of participants, send that to the .CFC and have it calculated out with a 
different result to be displayed..

Hope that helps with what I'm trying to do.

 Array of array was the intent
 
 A two-dimensional array?
 
 That would just have two levels:
 ArrayName[x][y]
 
 
 What you've done is this:
 ArrayName[x][y][z]
 
 Which is a three-dimensional array - or, in this case, since you've 
 told CF you want a two-dimensional array, CF assumes the third level 
 is a structure, hence your odd results.
 
 
 (NOTE: You do not need most of those hashes - only hashes within 
 cfloop to/list and cfinvokeargument value attributes serve any purpose 
 here.)
 
 
 Maybe you could give a little more information on what problem you're 
 trying to solve (some sort of tournament ranking?) and what your 
 expected output might look like?
 
 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314113
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


CFexecute Tag

2008-10-19 Thread Don L
I don't understand why the following code, won't bring up a 'window' of 'DOS' 
command prompt on my server/local box.  OS=Windows XP; CF version=CF8 Standard 
(licensed copy).

cfexecute name = C:\Windows\System32\cmd.exe
/cfexecute

No error code, no security issue.  I also try the notepad.exe with same outcome.

What's the expected result for CFEXECUTE (last time I used it probably years 
ago...).

Thanks.

Chunshen Li (Don) 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314114
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ImageNew, cfImage, IsBinary, CharsetEncode etc.

2008-10-19 Thread Don L
The {textarea} definitely has pixels

Just curious, but how do you store pixels in a textarea ?

Javascripting... 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314115
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ImageNew, cfImage, IsBinary, CharsetEncode etc.

2008-10-19 Thread Claude Schneegans
 Javascripting...

May be some example will help to understand.
I've never heard of Javascript handling pixels...

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314116
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ImageNew, cfImage, IsBinary, CharsetEncode etc.

2008-10-19 Thread Don L
Javascripting...

May be some example will help to understand.
I've never heard of Javascript handling pixels...

This part is non-issue for me now, I've locked myself up for last two 
days,haha...


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314117
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF Validation using CFC?

2008-10-19 Thread Rick Faircloth
Hi, all...

I'm slowly but surely integrating CFC's into my coding.

But now I'm wondering how best to modify my usual CF validation
of form values with a CFC in the mix.

I typically design a page with a form, have it submit back to itself,
run validation on the form variables, output appropriate error messages 
if needed,
and if everything validates, I run the query, let's say an insert query, 
on the
same page as the form, then using cflocation to direct to a success page.

But, using the CFC requires that the form's action page be the cfc itself,
with the method in the URL, e.g., properties.cfc?method=insert

Will I end up having to use session variables to make this work so I can
submit the form back to the page it's on, validate and if all validates, 
then
change the form variables to session variables and using cflocation to
then go to the cfc?  Can that even be done?... cflocation 
url=properties.cfc?method=insert  ???

Thanks for any feedback.

Rick

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314118
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF Validation using CFC?

2008-10-19 Thread Aaron Rouse
Sticking with your current method why don't you just continue to post back
to the same page.  Then in your check if it is a post back you instantiate
your CFC and pass in the FORM structure to do data validation.  That seems
like it would be the quickest way to mesh things into your current methods.
 Now people could argue you should change the methods around completely.

On Sun, Oct 19, 2008 at 9:09 PM, Rick Faircloth [EMAIL PROTECTED]wrote:

 Hi, all...

 I'm slowly but surely integrating CFC's into my coding.

 But now I'm wondering how best to modify my usual CF validation
 of form values with a CFC in the mix.

 I typically design a page with a form, have it submit back to itself,
 run validation on the form variables, output appropriate error messages
 if needed,
 and if everything validates, I run the query, let's say an insert query,
 on the
 same page as the form, then using cflocation to direct to a success page.

 But, using the CFC requires that the form's action page be the cfc itself,
 with the method in the URL, e.g., properties.cfc?method=insert

 Will I end up having to use session variables to make this work so I can
 submit the form back to the page it's on, validate and if all validates,
 then
 change the form variables to session variables and using cflocation to
 then go to the cfc?  Can that even be done?... cflocation
 url=properties.cfc?method=insert  ???

 Thanks for any feedback.

 Rick

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314119
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Googlemail

2008-10-19 Thread Al Musella, DPM
   I was also just working on using gmail... but with cfpop..
  there is a cute trick to it.. see:
http://www.anujgakhar.com/2008/05/18/cfpop-and-gmail/



At 08:33 AM 10/19/2008, you wrote:

Thanks. :)

Adrian Lynch wrote:
  I'm not sure if I'm answering the right question, but...
 
  I currently connect to a Google hosted email account with the
  following(taken from a CFC):
 
  cfmail
to=#VARIABLES.to#
from=#VARIABLES.from#
subject=#VARIABLES.subject#
server=#VARIABLES.server#
port=#VARIABLES.port#
username=#VARIABLES.username#
password=#VARIABLES.password#
useSSL=true
  #VARIABLES.message#/cfmail
 
  The useSSL bit is the part that you're most likely missing.
 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314120
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF Validation using CFC?

2008-10-19 Thread Rick Faircloth
So, use the CFC for the validation, as well?

Rick

Aaron Rouse wrote:
 Sticking with your current method why don't you just continue to post back
 to the same page.  Then in your check if it is a post back you instantiate
 your CFC and pass in the FORM structure to do data validation.  That seems
 like it would be the quickest way to mesh things into your current methods.
  Now people could argue you should change the methods around completely.

 On Sun, Oct 19, 2008 at 9:09 PM, Rick Faircloth [EMAIL PROTECTED]wrote:

   
 Hi, all...

 I'm slowly but surely integrating CFC's into my coding.

 But now I'm wondering how best to modify my usual CF validation
 of form values with a CFC in the mix.

 I typically design a page with a form, have it submit back to itself,
 run validation on the form variables, output appropriate error messages
 if needed,
 and if everything validates, I run the query, let's say an insert query,
 on the
 same page as the form, then using cflocation to direct to a success page.

 But, using the CFC requires that the form's action page be the cfc itself,
 with the method in the URL, e.g., properties.cfc?method=insert

 Will I end up having to use session variables to make this work so I can
 submit the form back to the page it's on, validate and if all validates,
 then
 change the form variables to session variables and using cflocation to
 then go to the cfc?  Can that even be done?... cflocation
 url=properties.cfc?method=insert  ???

 Thanks for any feedback.

 Rick


 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314121
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF Validation using CFC?

2008-10-19 Thread Aaron Rouse
That is entirely up to you, I thought from reading your post that you
already had validation methods written into a CFC but were thinking you had
to post the form to that CFC which was throwing a monkey wrench into your
plans.  There is no right or wrong way to tackle this.  When I first started
doing CFCs the method I used was to validate in a CFM file and if things
passed I would then pass things into my CFC for the DB insert/update.  That
has morphed through many different methods for me over the years though.

On Sun, Oct 19, 2008 at 9:36 PM, Rick Faircloth [EMAIL PROTECTED]wrote:

 So, use the CFC for the validation, as well?

 Rick

 Aaron Rouse wrote:
  Sticking with your current method why don't you just continue to post
 back
  to the same page.  Then in your check if it is a post back you
 instantiate
  your CFC and pass in the FORM structure to do data validation.  That
 seems
  like it would be the quickest way to mesh things into your current
 methods.
   Now people could argue you should change the methods around completely.
 
  On Sun, Oct 19, 2008 at 9:09 PM, Rick Faircloth 
 [EMAIL PROTECTED]wrote:
 
 
  Hi, all...
 
  I'm slowly but surely integrating CFC's into my coding.
 
  But now I'm wondering how best to modify my usual CF validation
  of form values with a CFC in the mix.
 
  I typically design a page with a form, have it submit back to itself,
  run validation on the form variables, output appropriate error messages
  if needed,
  and if everything validates, I run the query, let's say an insert query,
  on the
  same page as the form, then using cflocation to direct to a success
 page.
 
  But, using the CFC requires that the form's action page be the cfc
 itself,
  with the method in the URL, e.g., properties.cfc?method=insert
 
  Will I end up having to use session variables to make this work so I can
  submit the form back to the page it's on, validate and if all validates,
  then
  change the form variables to session variables and using cflocation to
  then go to the cfc?  Can that even be done?... cflocation
  url=properties.cfc?method=insert  ???
 
  Thanks for any feedback.
 
  Rick
 
 
 
 
 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314122
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF Validation using CFC?

2008-10-19 Thread Rick Faircloth
 When I first started
 doing CFCs the method I used was to validate in a CFM file and if things
 passed I would then pass things into my CFC for the DB insert/update.

That sounds like what I'm considering doing now.  I normally (without using
a CFC at all), submit a form back to the page it's on, run CF validation, then
process the query on that page, then redirect to a success page.

Now, I've moved the insert query to a CFC, but was wondering how to handle
the validation.  I guess I could use a separate CFC for validation, and then
the form variables would still be good for the insert CFC method.

From your description of your method above, it sounds like it's not necessary
to have the action attribute of the form tag set to go to the CFC with the
method attached to the URL, as described in the CF docs.

I guess it would be good to use this approach, perhaps:

formpage.cfm  submits back to itself  which then references a CFC for
validation (which returns error messages to the form page if there are errors?)
and if all is valid, the form data is passed to the data-handling CFC for 
insertion.

Sounds like I just need to move the validation form the form page (cfm) to a
CFC.

formpage.cfm
validation.cfc
datahandling.cfc

Sound  reasonable?

Rick



Aaron Rouse wrote:
 That is entirely up to you, I thought from reading your post that you
 already had validation methods written into a CFC but were thinking you had
 to post the form to that CFC which was throwing a monkey wrench into your
 plans.  There is no right or wrong way to tackle this.  When I first started
 doing CFCs the method I used was to validate in a CFM file and if things
 passed I would then pass things into my CFC for the DB insert/update.  That
 has morphed through many different methods for me over the years though.

 On Sun, Oct 19, 2008 at 9:36 PM, Rick Faircloth [EMAIL PROTECTED]wrote:

   
 So, use the CFC for the validation, as well?

 Rick

 Aaron Rouse wrote:
 
 Sticking with your current method why don't you just continue to post
   
 back
 
 to the same page.  Then in your check if it is a post back you
   
 instantiate
 
 your CFC and pass in the FORM structure to do data validation.  That
   
 seems
 
 like it would be the quickest way to mesh things into your current
   
 methods.
 
  Now people could argue you should change the methods around completely.

 On Sun, Oct 19, 2008 at 9:09 PM, Rick Faircloth 
   
 [EMAIL PROTECTED]wrote:
 
   
 Hi, all...

 I'm slowly but surely integrating CFC's into my coding.

 But now I'm wondering how best to modify my usual CF validation
 of form values with a CFC in the mix.

 I typically design a page with a form, have it submit back to itself,
 run validation on the form variables, output appropriate error messages
 if needed,
 and if everything validates, I run the query, let's say an insert query,
 on the
 same page as the form, then using cflocation to direct to a success
 
 page.
 
 But, using the CFC requires that the form's action page be the cfc
 
 itself,
 
 with the method in the URL, e.g., properties.cfc?method=insert

 Will I end up having to use session variables to make this work so I can
 submit the form back to the page it's on, validate and if all validates,
 then
 change the form variables to session variables and using cflocation to
 then go to the cfc?  Can that even be done?... cflocation
 url=properties.cfc?method=insert  ???

 Thanks for any feedback.

 Rick



 
   
 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314123
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFDocumentItem broken in CF 8.01

2008-10-19 Thread James Holmes
Can anyone else confirm this behaviour? Running the following example on
CF8.01 (patched to latest levels):

cfdocument format=pdf
cfdocumentitem type=footerpThe Footer/p/cfdocumentitem
pp1/p
cfdocumentitem type=pagebreak /
pp2/p
/cfdocument

Leads to a long running request, the stack trace for which shows the
following under FusionReactor:

State: TIMED_WAITING


jrpp-2644 prio=5 in Object.wait()

java.lang.Object.wait(Object.java:???)[Native Method]
- waiting on 0x726c2b (a java.lang.Object)
com.icesoft.util.PageDecorator.HeaderFooterDecoration.paint(HeaderFooterDecoration.java:118)
ice.pilots.html4.ThePrinter.printPage(ThePrinter.java:187)
coldfusion.document.DocumentSection.print(DocumentSection.java:144)
coldfusion.document.DocumentExporter.export(DocumentExporter.java:149)
coldfusion.document.DocumentExporter.export(DocumentExporter.java:38)
coldfusion.document.DocumentFrame.exportContent(DocumentFrame.java:162)
coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:276)
coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:163)
coldfusion.tagext.lang.DocumentTag.processContent(DocumentTag.java:1479)
coldfusion.tagext.lang.DocumentTag.access$000(DocumentTag.java:99)
coldfusion.tagext.lang.DocumentTag$3.run(DocumentTag.java:1390)
java.security.AccessController.doPrivileged(AccessController.java:???)[Native
Method]
coldfusion.tagext.lang.DocumentTag._processContent(DocumentTag.java:1386)
coldfusion.tagext.lang.DocumentTag.doAfterBody(DocumentTag.java:1340)


Take out the footer:

cfdocument format=pdf
pp1/p
cfdocumentitem type=pagebreak /
pp2/p
/cfdocument

and the request finishes immediately.

I can't find any hotfixes or technotes covering this issue. Has anyone else
seen the same thing?

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314124
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4