mail log
Is there any log in CF8 that will tell me if CFMail sent an email? ~| 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:321800 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: mail log
On Monday 20 Apr 2009, Chad Gray wrote: Is there any log in CF8 that will tell me if CFMail sent an email? The mail log probably will, yup. -- Helping to adaptively morph frictionless holistic corporate e-business as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com. ~| 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:321801 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: mail log
:P I only see failures in there. Does it log attempts? Or trys? -Original Message- From: Tom Chiverton [mailto:tom.chiver...@halliwells.com] Sent: Monday, April 20, 2009 8:38 AM To: cf-talk Subject: Re: mail log On Monday 20 Apr 2009, Chad Gray wrote: Is there any log in CF8 that will tell me if CFMail sent an email? The mail log probably will, yup. -- Helping to adaptively morph frictionless holistic corporate e-business as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com. ~| 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:321802 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: mail log
There's a mailsent.log file which should let you know if coldfusion sent the mail to the mail server. You'd have to check the mailserver logs to ensure it was sent from there. -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: 20 April 2009 13:34 To: cf-talk Subject: mail log Is there any log in CF8 that will tell me if CFMail sent an email? ~| 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:321803 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: mail log
Hi, Chad... Open the CF Administrator and go to Debugging Loggin Log Files mail.log Rick On Mon, Apr 20, 2009 at 8:34 AM, Chad Gray cg...@careyweb.com wrote: Is there any log in CF8 that will tell me if CFMail sent an email? ~| 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:321804 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: mail log
In CF Admin, under Server Settings Mail, in the Mail Logging Settings, you can set both the logging level (Error, Warning, Info, etc) as well as a checkbox to Log all mail messages sent by ColdFusion. ~| 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:321805 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFDIV
Hi All, I am using cfdiv to display the Name of the employer. Once the user enters the id in the textfield ..Name of the employer is displayed.It works fine when I enter the ID but I want to validate the text field to be highlighted if the textfield is empty. I am using a class attribute and a * to indicate error in the field and also want the data to be autofilled if error occurs.but either of them work for the field. The other fields in the page are just working file with the highlight on error. This is what I am doing: Number: cfinput type=text name=txt_Number value=#session.txt_Routingdata# class=errorfield cfdiv ID=id_Number bind=url:EmployerInfo.cfm?EmployerNumber={Form1:txt_Number}/ EmployerInfo.cfm cfquery name=EmployerInfo select Name from Employer where id='#url.EmployerNumber#' /cfquery cfoutput#EmployerInfo.Name#/cfoutput Thanks in Advance, Pranathi ~| 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:321806 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFIMAGE - File referencing
I have my images for my project under the webroot folder in the e-dang folder under the image folder and in the consumer folder i.e. (wwwroot/e-dang/images/comsumer). But when I reference the file within my code (below), I realize in the error report that the path returned by coldfusion is missing the project folder name. Is this usual or does it mean that I got the referencing wrong? Here is a portion of the error report (NOTE - e-dang is missing from the image path): An exception occurred while trying to read the image. File C:\ColdFusion8\wwwroot\images\consumer\DSC_0515_thumb.jpg does not exist. The error occurred in C:\ColdFusion8\wwwroot\e-dang\process_simpleSearchResults.cfm: line 53 Here is the code: td width=10%!--- creating a resized version of uploaded image of product. --- cfimage source=#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# action=resize width=100 height=60 name=resizedImg format= jpg cfimage source=#resizedImg# action=writeToBrowser!---img src=images/consumer/#Cnsmr_ProductIMAGE#---/font/td td width=90%font size=+2#Cnsmr_ProductDESCRIPTION# /fontnbsp; font size=+2a href=showProductDetail.cfm?Cnsmr_ProductID=#URLEncodedFormat(TRIM(Cnsmr_ProductID))##Cnsmr_ProductMODELNo# /fontnbsp;/a font size=+2#Cnsmr_ProductMODELYEAR# /fontnbsp; font size=+2#Cnsmr_ProductPRICE#/fontnbsp; font size=+2#User_id#/font ~| 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:321807 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 - File referencing
I have my images for my project under the webroot folder in the e-dang folder under the image folder and in the consumer folder i.e. (wwwroot/e-dang/images/comsumer). But when I reference the file within my code (below), I realize in the error report that the path returned by coldfusion is missing the project folder name. Is this usual or does it mean that I got the referencing wrong? It looks to me that you got the referencing wrong. Here is a portion of the error report (NOTE - e-dang is missing from the image path): An exception occurred while trying to read the image. File C:\ColdFusion8\wwwroot\images\consumer\DSC_0515_thumb.jpg does not exist. The error occurred in C:\ColdFusion8\wwwroot\e-dang\process_simpleSearchResults.cfm: line 53 Here is the code: td width=10%!--- creating a resized version of uploaded image of product. --- cfimage source=#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# action=resize width=100 height=60 name=resizedImg format= jpg ... You're specifying a path of /images/consumer/..., when the path should be /e-dang/images/consumer/ The path starts from the web root by default, when you start it with /. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:321808 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
application.cfc
Is it safe to put this code in the onError function? FORM Variablesbr / cfif isdefined(FORM.FieldNames)cfdump var=#FORM#/cfif SESSION Variablesbr cfif isdefined(session)cfdump var=#session#/cfif ~| 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:321809 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFSelect Bind with two parameters?
I've got a form with 4 drop downs. 1. Type:user selects car or motorcycle 2. Make: bound to type. Works good. 3. Model. I'm trying to use this: bind=cfc:model.getdata09.getmodels(which={wh...@none},make={m...@click}) However, I get an error that motorcycle is undefined in my function. Can't see what's wrong... Here's my function: cffunction name=getmodels access=remote returnType=query cfargument name=make type=string required=true cfargument name=which type=string required=true cfset var data= cfset which =#arguments.which# cfif which is car cfset THIS.table=cardata /cfif cfif which is motorcycle cfset THIS.table=motorcycledata /cfif !--- Get data --- cfquery name=data datasource=#THIS.dsn# SELECT distinct model FROM #THIS.table# WHERE make = cfqueryPARAM value = #ARGUMENTS.make# CFSQLType = CF_SQL_VARCHAR ORDER BY model /cfquery !--- And return it --- cfreturn data /cffunction ~| 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:321810 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 - File referencing
Output #ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#) to see where you're pointing to, it'll be wrong. Adrian -Original Message- From: Fawzi Amadu [mailto:abd...@gmail.com] Sent: 20 April 2009 17:43 To: cf-talk Subject: CFIMAGE - File referencing I have my images for my project under the webroot folder in the e-dang folder under the image folder and in the consumer folder i.e. (wwwroot/e-dang/images/comsumer). But when I reference the file within my code (below), I realize in the error report that the path returned by coldfusion is missing the project folder name. Is this usual or does it mean that I got the referencing wrong? Here is a portion of the error report (NOTE - e-dang is missing from the image path): An exception occurred while trying to read the image. File C:\ColdFusion8\wwwroot\images\consumer\DSC_0515_thumb.jpg does not exist. The error occurred in C:\ColdFusion8\wwwroot\e- dang\process_simpleSearchResults.cfm: line 53 Here is the code: td width=10%!--- creating a resized version of uploaded image of product. --- cfimage source=#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# action=resize width=100 height=60 name=resizedImg format= jpg cfimage source=#resizedImg# action=writeToBrowser!---img src=images/consumer/#Cnsmr_ProductIMAGE#---/font/td td width=90%font size=+2#Cnsmr_ProductDESCRIPTION# /fontnbsp; font size=+2a href=showProductDetail.cfm?Cnsmr_ProductID=#URLEncodedFormat(TRIM(Cnsm r_ProductID))##Cnsmr_ProductMODELNo# /fontnbsp;/a font size=+2#Cnsmr_ProductMODELYEAR# /fontnbsp; font size=+2#Cnsmr_ProductPRICE#/fontnbsp; font size=+2#User_id#/font ~| 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:321811 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 - File referencing
#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# because you have / in front of images CF assumes you are referencing the path from WEB ROOT, not from current template path - hence it looks in C:\ColdFusion8\wwwroot\images instead of in C:\ColdFusion8\wwwroot\e-dang\images try this instead: #ExpandPath('images/consumer/' Cnsmr_ProductIMAGE)# or #ExpandPath('/e-dang/images/consumer/' Cnsmr_ProductIMAGE)# Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Fawzi Amadu wrote: I have my images for my project under the webroot folder in the e-dang folder under the image folder and in the consumer folder i.e. (wwwroot/e-dang/images/comsumer). But when I reference the file within my code (below), I realize in the error report that the path returned by coldfusion is missing the project folder name. Is this usual or does it mean that I got the referencing wrong? Here is a portion of the error report (NOTE - e-dang is missing from the image path): An exception occurred while trying to read the image. File C:\ColdFusion8\wwwroot\images\consumer\DSC_0515_thumb.jpg does not exist. The error occurred in C:\ColdFusion8\wwwroot\e-dang\process_simpleSearchResults.cfm: line 53 Here is the code: td width=10%!--- creating a resized version of uploaded image of product. --- cfimage source=#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# action=resize width=100 height=60 name=resizedImg format= jpg cfimage source=#resizedImg# action=writeToBrowser!---img src=images/consumer/#Cnsmr_ProductIMAGE#---/font/td td width=90%font size=+2#Cnsmr_ProductDESCRIPTION# /fontnbsp; font size=+2a href=showProductDetail.cfm?Cnsmr_ProductID=#URLEncodedFormat(TRIM(Cnsmr_ProductID))##Cnsmr_ProductMODELNo# /fontnbsp;/a font size=+2#Cnsmr_ProductMODELYEAR# /fontnbsp; font size=+2#Cnsmr_ProductPRICE#/fontnbsp; font size=+2#User_id#/font ~| 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:321812 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: application.cfc
id put it in an email rather than displaying, that way you knnow someone who isnt supps to see it is seeing it. but thats just me. On Mon, Apr 20, 2009 at 12:56 PM, Chad Gray cg...@careyweb.com wrote: Is it safe to put this code in the onError function? FORM Variablesbr / cfif isdefined(FORM.FieldNames)cfdump var=#FORM#/cfif SESSION Variablesbr cfif isdefined(session)cfdump var=#session#/cfif ~| 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:321813 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFSelect Bind with two parameters?
I've got a form with 4 drop downs. 1. Type:user selects car or motorcycle 2. Make: bound to type. Works good. 3. Model. I'm trying to use this: bind=cfc:model.getdata09.getmodels(which={wh...@none},make={m...@click}) However, I get an error that motorcycle is undefined in my function. Can't see what's wrong... Here's my function: cffunction name=getmodels access=remote returnType=query cfargument name=make type=string required=true cfargument name=which type=string required=true cfset var data= cfset which =#arguments.which# cfif which is car ... cfif which is motorcycle ... Compare those last two CFIF statements, and you can probably see the difference. The variable WHICH should contain a literal value of car or motorcycle, but without the quotes in the last CFIF you're referencing a nonexistent variable called motorcycle. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for m ~| 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:321814 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFSelect Bind with two parameters?
I've got a form with 4 drop downs. Compare those last two CFIF statements, and you can probably see the difference. The variable WHICH should contain a literal value of car or motorcycle, but without the quotes in the last CFIF you're referencing a nonexistent variable called motorcycle. Darn it. It's the little things. I need to walk away for a little while. Thanks Dave, works great now. ~| 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:321815 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Anyone heard of CF_WordCount?
I am working on rebuilding a site for a client whose server crashed. They are missing a tag named CF_wordcount. The only occurrence of this in google is on Adobe's developer exchange: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=115 But although that entry is for CF_WordCount, when you try to download it all you get is a DLL. As far as I know a Custom Tag can't use a DLL, that would have to be a CFX tag. There's also no documentation, no examples, and all the links are broken. It also has a date of 1997 on it so I doubt it will run on CF8. It shoudn't be too hard to duplicate (probably using ListLen()? ) but if we could find the missing drop in replacement that would be great. I'm guessing this might have been something custom they did or had done for themselves anyway though. But if anyone has any info on a CF_WordCount custom tag please let me know. Thanks. ~| 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:321816 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 - File referencing
#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# because you have / in front of images CF assumes you are referencing the path from WEB ROOT, not from current template path - hence it looks in C:\ColdFusion8\wwwroot\images instead of in C:\ColdFusion8\wwwroot\e-dang\images try this instead: #ExpandPath('images/consumer/' Cnsmr_ProductIMAGE)# or #ExpandPath('/e-dang/images/consumer/' Cnsmr_ProductIMAGE)# Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Fawzi Amadu wrote: I have my images for my project under the webroot folder in the e-dang folder under the image folder and in the consumer folder i.e. (wwwroot/e-dang/images/comsumer). But when I reference the file within my code (below), I realize in the error report that the path returned by coldfusion is missing the project folder name. Is this usual or does it mean that I got the referencing wrong? Here is a portion of the error report (NOTE - e-dang is missing from the image path): An exception occurred while trying to read the image. File C:\ColdFusion8\wwwroot\images\consumer\DSC_0515_thumb.jpg does not exist. The error occurred in C:\ColdFusion8\wwwroot\e-dang\process_simpleSearchResults.cfm: line 53 Here is the code: td width=10%!--- creating a resized version of uploaded image of product. --- cfimage source=#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# action=resize width=100 height=60 name=resizedImg format= jpg cfimage source=#resizedImg# action=writeToBrowser!---img src=images/consumer/#Cnsmr_ProductIMAGE#---/font/td td width=90%font size=+2#Cnsmr_ProductDESCRIPTION# /fontnbsp; font size=+2a href=showProductDetail. cfm?Cnsmr_Produ ctID=#URLEncodedFormat(TRIM(Cnsmr_ProductID))##Cnsmr_ProductMODELNo# /fontnbsp;/a font size=+2#Cnsmr_ProductMODELYEAR# /fontnbsp; font size=+2#Cnsmr_ProductPRICE#/fontnbsp; font size=+2#User_id#/font ~| 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:321817 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 - File referencing
Thanks a lot to all of you. Your explanation solved my problem. #ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# because you have / in front of images CF assumes you are referencing the path from WEB ROOT, not from current template path - hence it looks in C:\ColdFusion8\wwwroot\images instead of in C:\ColdFusion8\wwwroot\e-dang\images try this instead: #ExpandPath('images/consumer/' Cnsmr_ProductIMAGE)# or #ExpandPath('/e-dang/images/consumer/' Cnsmr_ProductIMAGE)# Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Fawzi Amadu wrote: I have my images for my project under the webroot folder in the e-dang folder under the image folder and in the consumer folder i.e. (wwwroot/e-dang/images/comsumer). But when I reference the file within my code (below), I realize in the error report that the path returned by coldfusion is missing the project folder name. Is this usual or does it mean that I got the referencing wrong? Here is a portion of the error report (NOTE - e-dang is missing from the image path): An exception occurred while trying to read the image. File C:\ColdFusion8\wwwroot\images\consumer\DSC_0515_thumb.jpg does not exist. The error occurred in C:\ColdFusion8\wwwroot\e-dang\process_simpleSearchResults.cfm: line 53 Here is the code: td width=10%!--- creating a resized version of uploaded image of product. --- cfimage source=#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )# action=resize width=100 height=60 name=resizedImg format= jpg cfimage source=#resizedImg# action=writeToBrowser!---img src=images/consumer/#Cnsmr_ProductIMAGE#---/font/td td width=90%font size=+2#Cnsmr_ProductDESCRIPTION# /fontnbsp; font size=+2a href=showProductDetail. cfm?Cnsmr_Produ ctID=#URLEncodedFormat(TRIM(Cnsmr_ProductID))##Cnsmr_ProductMODELNo# /fontnbsp;/a font size=+2#Cnsmr_ProductMODELYEAR# /fontnbsp; font size=+2#Cnsmr_ProductPRICE#/fontnbsp; font size=+2#User_id#/font ~| 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:321818 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfadmin api scripting
Hi - I am looking for info on using the cfadmin api to copy sandbox security from instance to instance. For once google is letting me down. Can anyone nudge me in the right direction for some docs and/or examples? Looking for cfmxe7 - cfmxe7 and cfmxe7 - cfme8. Thanks. ~| 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:321819 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4