Re: cfchart
The pie example's cfchartseries appears to be missing the query=GetS attribute. 19 records might get crowded and illegible, but it won't give you nothing. On Tue, Nov 19, 2013 at 3:38 PM, Stephens, Larry V steph...@iu.edu wrote: cfchart format=jpg databackgroundcolor=white fontsize=14 scalefrom=-1 scaleto=#hival# font=Arial foregroundcolor=maroon title=Law Firm Spend Report showxgridlines=yes chartwidth=#xsize# show3d=no cfchartseries type=curve query=GetS itemcolumn=LawFirm valuecolumn=SumOfFees seriescolor=##33/cfchartseries /cfchart Makes a nice curve chart. cfchart format=png pieslicestyle=solid show3d=yes cfchartseries type=pie serieslabel=Spend by Law Firm seriescolor=##0066FF itemcolumn=LawFirm valuecolumn=SumOfFees /cfcharseries /cfchart Makes a nice blank spot. I can find plenty of examples to make a pie chart using static data. I have not found one anywhere that makes one using query data. The data is in a protected area or I would make this available on a page. Would the size of the query return affect this? It returns 19 records. What am I missing? ~| 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:357119 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: odd (I think) ajax related problem
Use the complete/success/callback of your ajax call to run this code block: var x = $('#TheBldg').val(); // storage of passed parameter alert(x); if ( x.length 0 ) { $('#bldgID').val(x).prop('selected',true); } That should ensure the select is available to jquery before attempting to set it to selected. On Tue, May 21, 2013 at 2:38 PM, Stephens, Larry V steph...@iu.edu wrote: No error but I don't think it kills the render - just delays it. It works okay when I insert what amounts to a delay with the alert(). Only tried it in Firefox so far. -Original Message- From: Maureen [mailto:mamamaur...@gmail.com] Sent: Tuesday, May 21, 2013 11:54 AM To: cf-talk Subject: Re: odd (I think) ajax related problem Are you getting an error? If so, what is it? If not, I suspect the large number of values for the form select may be killing your page render. Are you having the same results in all browsers? On Tue, May 21, 2013 at 7:54 AM, Stephens, Larry V steph...@iu.edu wrote: 1. Load a page 2. Use an ajax call and jQuery to populate a select (verified that the value I'm seeking is loaded) 3. Using a passed parameter (stored in a hidden field), set the proper option to selected (and this code could be optimized, before anyone mentions it) I've done this many times and it works. This time it doesn't. If I put in an alert (originally done to make sure the value I want is really there), then it works. Without the alert, it doesn't. ~| 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:355813 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Easy CFC question (I hope)
Change your return to: cfretun qUserEmail As you have it, it's attempting to return a reference to the adduser method. ~| 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:355671 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Nesting Issue?
I suspect this is causing the problem. As someone else mentioned, nesting cfoutputs without a group attribute in the outermost cfoutput used to throw an error. In CF10, the inner cfoutput block loops over the remaining values of the query in each iteration through the outer cfoutput. On Fri, Feb 8, 2013 at 9:31 AM, Bruce Sorge sor...@gmail.com wrote: cfoutput Voucher formatting goes here /cfoutput ~| 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:354424 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Embedding image to a document that is attached to an email
As someone else pointed out, if you got to: http://www.makeaherodonations.com/Images/logo.pnghttp://www.makeaherodonations.com/Images/Logo.png the image loads fine. It appears the server is case-sensitive. On Thu, Sep 13, 2012 at 11:37 AM, Bruce Sorge sor...@gmail.com wrote: Here is what is weird; If you go to http://www.makeaherodonations.com/test.cfm you see the logo. If you go to http://www.makeaherodonations.com/Images/Logo.png you get a 404 error. The IMG SRC is Images/Logo.png. I am at a loss. It seems that if a file is there when you browse to it you should see it. Weird. Bruce On Sep 13, 2012, at 10:30 AM, .jonah jonah@creori.com wrote: Ok, so what is the url to the image that actually works in your browser and what is the webroot for your server and the document root for that particular site? ~| 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:352590 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: createodbcdatetime change in cf9?
What is the actual content of the form.payment_date coming from PayPal? It should be something like '08:38:49 Apr 11, 2012 PDT'. The code below works just fine on that value on CF9 in my testing environment. Without the ' PDT' part, the code tries to run createodbcdatetime() on '08:38:49 Apr 11, ', which fails. On Wed, Apr 11, 2012 at 11:19 AM, Tony Paolillo tpaoli...@gmail.com wrote: Hi, im stuck on a problem that i just cannot seem to figure out. I have a script that recieves popsts from the paypal IPN. This is my code for decoding the date/time: cfif isdefined(form.payment_date) cfset payment_date=urldecode(form.payment_date) cfset dl = len(payment_date) cfset cut = dl - 3 cfset paymentdate_temp=removechars(payment_date,cut,4) cfset paymentdate = #createodbcdatetime(paymentdate_temp)# /cfif The script works fine in CF7 and 8 but kicks an error in CF9. I use cfcatch to snag the error. The error is this: Error at decoding the payment_date, Expression, , 08:38:49 Apr 11, 2012 is an invalid date or time string. I cannot figure out what to do to save my live. Can someone please help? Thanks Tony ~| 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:350681 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: createodbcdatetime change in cf9?
What I was saying is, I tested the actual code you originally posted on CF9 with 08:38:49 Apr 11, 2012 PDT as the input and it works fine. I was trying to verify that the data you're working with has the timezone on the end, since the cut portion of the code is designed to remove that, and will remove needed data if your input doesn't include it. I just tested again with 08:38:49 April 11, 2012 EST, and your original code also works. Removing the cut won't fix your trouble, because 08:38:49 April 11, 2012 EST isn't a valid date/time string for CF. I used this for my testing: form method=post input type=text name=payment_date value=08:38:49 Apr 11, 2012 EST / buttonPost/button /form cfif isdefined(form.payment_date) cfset payment_date=urldecode(form.payment_date) cfset dl = len(payment_date) cfset cut = dl - 3 cfset paymentdate_temp=removechars(payment_date,cut,4) cfset paymentdate = #createodbcdatetime(paymentdate_temp)# cfdump var=#paymentdate# /cfif I noticed that the date im trying to create an odbc datetiime on is 08:38:49 Apr 11, 2012 and its failing.. That still has the time in it but not the EST. This should work fine: cfdump var=#createodbcdatetime('08:38:49 Apr 11, 2012')# You may be running into an ambiguity issue with CF being type-less. Createodbcdatetime() wants a DateTime object but will accept a string CF thinks it can parse. For my test environment, CF can parse the string you have, but it seems your server environment can't. I can't say for sure why, and getting into the server settings isn't really something I have a lot of experience with. ~| 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:350683 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: createodbcdatetime change in cf9?
That needs to be: cfset paymentdate = #createodbcdatetime('08:38:49 April 11, 2012')# The time zone on the end is invalid in CF. On Wed, Apr 11, 2012 at 2:46 PM, Tony Paolillo tpaoli...@gmail.com wrote: cfset paymentdate = #createodbcdatetime('08:38:49 April 11, 2012 EST')# ~| 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:350685 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bracket Notation
Is 'detail' a query? If so, you need #detail[off#idx#_street] [detail.currentRow]#. On Fri, Mar 30, 2012 at 10:53 AM, Les Mizzell lesm...@bellsouth.net wrote: Trying to get the below to work in a loop: #detail.off1_street# #detail.off2_street# #detail.off3_street# #detail.off4_street# So, this seems correct... cfloop from=1 to=4 index=idx #detail[off#idx#_street]#br / /cfloop error: cftComplex object types cannot be converted to simple values I've tried a couple versions of that. H ... I'm either an idiot or need another cup of coffee. Point a poor soul in the right direction ~| 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:350600 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Bracket Notation
This code runs perfectly on my CF8 machine: cfset detail = StructNew() cfset detail.off1_Street = 1 cfset detail.off2_Street = 2 cfset detail.off3_Street = 3 cfset detail.off4_Street = 4 cfoutput cfloop from=1 to=4 index=idx #detail[off#idx#_street]#br / /cfloop /cfoutput On Fri, Mar 30, 2012 at 11:06 AM, wrote: You cannot embed #...# delimitors like this. Try with cfloop from=1 to=4 index=idx #detail[off idx _street]#br / /cfloop ~| 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:350603 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF Builder 2 Express (free edition)
Try: Preferences - HTML - JavaScript - Typing - Auto format code block when typing closing brace Not sure if that will do it or not, but seems the likely suspect. On second look, in: Preferences - HTML - JavaScript - Formatting, you can select No Formatting in the drop-down box. Alternatively, you can edit the formatting options to match your coding style. On Wed, Dec 14, 2011 at 11:49 AM, Rick Faircloth r...@whitestonemedia.comwrote: Is there a one-check box that I can use to turn off all Javascript code formatting? I like to type in my JS in a certain style, but CFB is constantly reformatting my JS according to the preferences. I've unchecked everything I can find to get CFB to leave my typed formatting alone, but it still re-formats what I type. Please tell me what to check or uncheck to keep this from happening. I'm sure I've overlooked something. There out to be a single leave everything that I type alone checkbox that overrides all formatting. Suggestions? Thanks! Rick ~| 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:349121 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: arraydeleteat display issue
ArrayDeleteAt() returns a boolean after affecting the array. The question then becomes, what do you want displayed? cfif ArrayLen(session.order_array) gt 6 cfset arrayDelete = ArrayDeleteAt(session.order_array,7) !--- do or display something here --- /cfif On Wed, Oct 12, 2011 at 1:36 PM, Tom Connolly tconn...@umaryland.eduwrote: When the following code runs I get a YES diplayed on the page: cfoutput cfif #ArrayLen(session.order_array)# gt 6 #ArrayDeleteAt(session.order_array,7)# /cfif /cfouput I tried changing the code to this to get rid of the YES output but it still appears: cfoutput cfif #ArrayLen(session.order_array)# gt 6 cfset arrayDelete = ArrayDeleteAt(session.order_array,7) #arrayDelete# /cfif /cfoutput Thoughts? ~| 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:348069 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: String validation HELP!!!!
nvmd. just got it. Thanks for your help. Don't mean to hijack the thread or anything, but you wouldn't happen to be the same Kenny Kinds I worked with several years ago at CWC in St Louis, would you. Just curious, as I tried to look him(you?) up at your other site a couple of years ago, but it was no longer active. -morgan ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289452 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ReReplace
I think you want Replace(), not ReReplace(). ReReplace is trying to use a RegEx to make the replacement, Replace will do the straight text match/replace. I'm trying to replace the .jpg file extension on in a string with .gif and using the following regex. cfset LOCAL.New = 'D:\MediaStore\' REReplace(ARGUMENTS.File, '.jpg', '.gif', 'ALL') / ARGUMENTS.File is a string that looks like 'myfile.jpg' Am I missing something here? Thanks, Rob ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277044 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: How can I check this string a different way?
Am I missing something here? Isn't the Left 2 of OL1 or OL2 'OL'? Will said that it would be OL1, OL2, in which case your example wouldn never eval to true. Will, something like this should work: cfset isOLCourse = REFindNoCase(OL[0-9]+,ListLast(getsection.section, -)) That looks for the letters OL followed by at least one number. cfset isOLCourse = Left(ListLast(getSection.section, -), 2) is OL ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276577 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4