Re: Numbers to Words
Craig Dudley wrote: I'm sure I've seen a CFC or UDF before that translates numbers into words, eg; we used to have a c++ cfx tag for that but quite a while ago we switched to using icu4j's RuleBasedNumberFormat (since we use it for so much else). besides spellout it also gives you duration (time) ordinal (1st, 2nd, etc.) formatting per locale. see: http://icu.sourceforge.net/apiref/icu4j/com/ibm/icu/text/RuleBasedNumberFormat.html for details. it requires a small wrapper class for cf to talk to it, drop me a line if you want the java class/code. I am interested in this small wrapper class for coldfusion to talk to it !! Thanks, Bob ~| 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:347286 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF8 Component/Cfinvoke performance
Hello all, I am having an issue where I have created a Book CFC that is taking way too long to cfinvoke. I had to convert it to a cffunction to get the permformance I needed. The cfc lived in the directory of the template path being used for the cfinvoke, so I assumed that was a relatively efficient way to do it? What can I look at that would affect the component invoking speed ? Is there any way not to have to cfinvoke so many times, and cache/reuse the component structure in mem and just put the current data in it (and not cfinvoke alot ) ? I am not explicity tearing down the structures, just doing cfinvokes in loops with new book isbn's etc. I am a cfcomponent newbie, so be gentle.. :) I would really not have to use functions, and be able to make calls to this remotely, but I am at a loss where to change it. It performs fine as a function, just not as a component. Any ideas appreciated. Thanks, Bob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334412 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF8 Component/Cfinvoke performance
I am doing: cfinvoke compenent =Book method=init returnvariable=my_book cfinvokearguemnt /cfinvoke Thanks, I will try that, and see if it works better. Did you use something like cfinvoke component=foo method=goo returnVariable=result /cfinvoke ? If so, then you are recreating the component on each request. You can, and probably should, store the CFC one time in a persistant scope. Your Application.cfc's onApplicationStart could do something like this: cfset application.foo = createObject(component, foo) Then your CFC can do: cfinvoke component=#application.foo# method=goo returnVariable=reuslt or cfset result = application.foo.goo() ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334425 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Working out yes/no possibilities
Ahh, me knee-jerk reactions is that he is looking for cheating patterns ?? May I ask why on earth you are doing this? :) Thanks for this Brad, I'll give it a shot. As to the why, my boss wants us to generate every possible answer in the questionnaire for testing purposes - I know that makes no sense at all, but mine is not to wonder why, mine is but to do and die and all that. :) T HAHAHAHAHAHAHAHAHAHAHAHAHAHAHA! Sorry, did I just say that out loud. *snicker*. You should ask you boss how may possible combinations he thinks a test of 22 questions can have. I'd LOVE to hear how good his math skills are. Here's a thought, perhaps he simple wanted you to take the test TWICE. Once with all true and once with all false. Then you would have hit every possible answer-- just not in every possible combination. If at all possible, can you grab a pic of his face on your camera phone when you tell him there are over 4 million ways to take your test. Just wait, in a couple months he'll be wanting you to test the 50 question multiple choice quiz. Not to worry, there's only 1,267,650,600,228,229,401,496,703,205,376 possible ways to take that one. You'll have it done in no time. ~Brad *Sorry, I just had to have some fun with this one* ~| 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:328646 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFCHART Question: Multiple bar colors with Single Series Chart
Not sure if I am reading your post correct, but this makes multiple bar colors on a bar chart for me ? cfchart yAxisTitle=Project Count xAxisTitle=Projects by Status cfchartseries colorlist=black,olive,green,red,blue,yellow,purple type=bar query=count_status valueColumn=status_count itemColumn=proj_status paintStyle=plain / /cfchart Hey People, I have been struggling with this for a long time today. I am using CFCHART and creating styles with the webcharts3d designer, everything is going fine except that I can not get multiple bar colors for a single series bar chart: ~| 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:327952 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF8 = button = javascript/cfwindow = occasional = Error retrieving markup for element
Hi, I am having some problems with windows/xp boxes running IE7 with one of the cfm pages I created. I am kinda at a loss to why it is happening, because on my test machines it works flawlessly. Any ideas on why we could the error below would be appreciated. The page uses a cfform with a button that creates a cfwindow via javascript: The page works fine on ie8, ie6, ff2, ff3 etc.. and ie7 and seems to be intermittent on some browsers or connections to the cf8 server. I have had a couple of JVM mem warnings on the box, and upped the jvm heap size from 256/512 = 768/768, but I am not sure they have anything to do with this issue. Note, I never do a .destroy on the cfwindow, just a .hide, and plan to put in a .destroy, and I just assumed that garbage collection would clean up my windows (I know bad..:) Here is the error: Error retrieving markup for element iimg_J032_body, unable to open connectoin to URL http://www.domain.com/dir/subdir/cfimage.cfm?id=J073 : [Enable debugging by adding 'cfdebg' to your URL parameters to see more information] Here is the javascript code assigned to the button: cfinput name=vbutton type=button onClick= javascript:{ if(document.getElementById('iimg_#DOCUMENT_NUMBER#')) { ColdFusion.Window.show('iimg_#DOCUMENT_NUMBER#'); } else { ColdFusion.Window.create('iimg_#DOCUMENT_NUMBER#', 'Austin History Center - Jones Glass Plate Collection - Image: #DOCUMENT_NUMBER# #img_subject#' , 'http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=#DOCUMENT_NUMBER#' ,{height:#oi_window + 108# , width:940,shadow:true,modal:true, closable:true, draggable:true, resizable:true,center:true, initshow:true,minheight:#oi_window+108#, minwidth:940, refreshOnShow:true});} } value=Larger Here is the jvm arguments settings: -server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib Cfdebug from page that build the button, and when clicked: info:widget: Window hidden, id: iimg_J032 info:http: Replaced markup for element: iimg_J032_body info:http: HTTP GET http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=J032_cf_containerId=iimg_J032_body_cf_nodebug=true_cf_nocache=true_cf_clientid=9CE97279562E33039280EC69021AC64A_cf_rc=0 info:http: Replacing markup for element: iimg_J032_body from URL http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=J032 with params _cf_containerId=iimg_J032_body info:widget: Creating window: iimg_J032 info:LogReader: LogReader initialized info:global: Logger initialized Coldfusion Version: Server Product ColdFusion Version 8,0,0,176276 Edition Enterprise Operating System UNIX OS Version 2.6.18-128.el5PAE Java VM Specification Version 1.0 Java VM Specification Vendor Sun Microsystems Inc. Java VM Specification Name Java Virtual Machine Specification Java VM Version 1.6.0_01-b06 Java VM Vendor Sun Microsystems Inc. Java VM Name Java HotSpot(TM) Server VM Java Specification Version 1.6 Java Specification Vendor Sun Microsystems Inc. Java Specification Name Java Platform API Specification Thanks in advance, Bob ~| 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:327177 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 = button = javascript/cfwindow = occasional = Error retrieving markup for element
Well, that piece of code seems to work fine, it just adds a bit of vertical height to the window depending on image size. The whole thing works fine that I can see IE8,IE6,FF2,FF3, but my my bosses IE7 failed on it. I am starting to wonder, if it not connected to me not destroying the cfwindow, but hiding it, then they go back to that image, and the cfwindowname is based upon the image. So what may be happening, is the window references to the cfimage temporary .png's become invalid, because the window is being essentially unhidden, but the cf cleanup has removed the image. Hmm, uhhh and it is 8.00 and I have no .destroy method unless I apply Cumulative Hot Fix 3 for ColdFusion 8.0.1, which I see comments about causing cfimage processing problem.. I'm scared, and the unix admin is busy putting our other fires.. :( One thing that jumps out is this: #oi_window + 108# (2 instances) Is this what you're trying to do: #evaluate(oi_window + 108)# assuming oi_window is numeric? I think that might affect retrieving the markup. -- Mark Atkinson AOCS Web | www.aocs.org 217-693-4839 Robert Bell wrote: ~| 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:327183 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 = button = javascript/cfwindow = occasional = Error retrieving markup for element
Ok, I got the AJAX Debugger to show me this, but it still makes no sense to me. I change the cfwindow to a static name: img_window, and started using coldfusion.navigate instead of coldfusion.window.unhide to show/unshow it, since I thought colfdusion.navigate would reload the cfcode, and then I would have no cfimage clean up issues.. :( error:http: Error retrieving markup for element img_window_body, unable to open connection to URL http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=J060 : info:http: HTTP GET http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=J060_cf_containerId=img_window_body_cf_nodebug=true_cf_nocache=true_cf_clientid=480B98AC91F1E74F15D5F047ACE91228_cf_rc=0 info:http: Replacing markup for element: img_window_body from URL http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=J060 with params _cf_containerId=img_window_body info:widget: Creating window: img_window info:LogReader: LogReader initialized info:global: Logger initialized info:widget: Creating window: img_window info:LogReader: LogReader initialized info:global: Logger initialized Hi, I am having some problems with windows/xp boxes running IE7 with one of the cfm pages I created. I am kinda at a loss to why it is happening, because on my test machines it works flawlessly. Any ideas on why we could the error below would be appreciated. The page uses a cfform with a button that creates a cfwindow via javascript: The page works fine on ie8, ie6, ff2, ff3 etc.. and ie7 and seems to be intermittent on some browsers or connections to the cf8 server. I have had a couple of JVM mem warnings on the box, and upped the jvm heap size from 256/512 = 768/768, but I am not sure they have anything to do with this issue. Note, I never do a .destroy on the cfwindow, just a .hide, and plan to put in a .destroy, and I just assumed that garbage collection would clean up my windows (I know bad.. :) Here is the error: Error retrieving markup for element iimg_J032_body, unable to open connectoin to URL http://www.domain.com/dir/subdir/cfimage.cfm?id=J073 : [Enable debugging by adding 'cfdebg' to your URL parameters to see more information] Here is the javascript code assigned to the button: cfinput name=vbutton type=button onClick= javascript:{ if(document.getElementById('iimg_#DOCUMENT_NUMBER#')) { ColdFusion. Window.show('iimg_#DOCUMENT_NUMBER#'); } else { ColdFusion.Window.create('iimg_#DOCUMENT_NUMBER#', 'Austin History Center - Jones Glass Plate Collection - Image: #DOCUMENT_NUMBER# #img_subject#' , 'http://www.domain.com/dir/subdir/cfimage. cfm?cfdebugid=#DOCUMENT_NUMBER#' , {height:#oi_window + 108# , width:940,shadow:true,modal:true, closable:true, draggable:true, resizable:true,center:true, initshow:true,minheight:#oi_window+108#, minwidth:940, refreshOnShow:true});} } value=Larger Here is the jvm arguments settings: -server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib Cfdebug from page that build the button, and when clicked: info:widget: Window hidden, id: iimg_J032 info:http: Replaced markup for element: iimg_J032_body info:http: HTTP GET http://www.domain.com/dir/subdir/cfimage. cfm?cfdebugid=J032_cf_containerId=iimg_J032_body_cf_nodebug=true_c f_nocache=true_cf_clientid=9CE97279562E33039280EC69021AC64A_cf_rc=0 info:http: Replacing markup for element: iimg_J032_body from URL http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=J032 with params _cf_containerId=iimg_J032_body info:widget: Creating window: iimg_J032 info:LogReader: LogReader initialized info:global: Logger initialized Coldfusion Version: Server Product ColdFusion Version 8,0,0,176276 Edition Enterprise Operating System UNIX OS Version 2.6.18-128.el5PAE Java VM Specification Version 1.0 Java VM Specification Vendor Sun Microsystems Inc. Java VM Specification Name Java Virtual Machine Specification Java VM Version 1.6.0_01-b06 Java VM Vendor Sun Microsystems Inc. Java VM Name Java HotSpot(TM) Server VM Java Specification Version 1.6 Java Specification Vendor Sun Microsystems Inc. Java Specification Name Java Platform API Specification Thanks in advance, Bob ~| 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:327201 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 = button = javascript/cfwindow = occasional = Error retrieving markup for element
Problem SOLVED. Seems by using the full path to the url, some browsers were having problems, so I just used the cfimage.cfm relative path, and everything works on all browser permutations just dandy. Guess this was viewed as a cross-domain scripting attack somewhere down the ajax/ui/cf/javascript path ? Hrm, anyway thanks for listening to me at all. :) Ok, I got the AJAX Debugger to show me this, but it still makes no sense to me. I change the cfwindow to a static name: img_window, and started using coldfusion.navigate instead of coldfusion.window.unhide to show/unshow it, since I thought colfdusion.navigate would reload the cfcode, and then I would have no cfimage clean up issues.. :( error:http: Error retrieving markup for element img_window_body, unable to open connection to URL http://www.domain. com/dir/subdir/cfimage.cfm?cfdebugid=J060 : info:http: HTTP GET http://www.domain.com/dir/subdir/cfimage. cfm?cfdebugid=J060_cf_containerId=img_window_body_cf_nodebug=true_c f_nocache=true_cf_clientid=480B98AC91F1E74F15D5F047ACE91228_cf_rc=0 info:http: Replacing markup for element: img_window_body from URL http://www.domain.com/dir/subdir/cfimage.cfm?cfdebugid=J060 with params _cf_containerId=img_window_body info:widget: Creating window: img_window info:LogReader: LogReader initialized info:global: Logger initialized info:widget: Creating window: img_window info:LogReader: LogReader initialized info:global: Logger initialized ~| 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:327207 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 = button = javascript/cfwindow = occasional = Error retrieving markup for element
Yup. In addition, I made the admin install the 8.01 update so I could implement a coldfusion.window.destroy tear down process, and hopefully not run into jvm memory problems. coldfusion.navigate did not really work, since it was not really updating the window content correctly. Now to contemplate the CF8 Cum. Hot Fix 3 potential cfimage issues. :) Thanks for sharing. It's these little idiosyncratic tidbits that make this job so interesting and frustrating all at once. -- Mark Atkinson AOCS Web | www.aocs.org 217-693-4839 Robert Bell wrote: Problem SOLVED. Seems by using the full path to the url, some browsers were having problems, so I just used the cfimage.cfm relative path, and everything works on all browser permutations just dandy. Guess this was viewed as a cross-domain scripting attack somewhere down the ajax/ui/cf/javascript path ? Hrm, anyway thanks for listening to me at all. :) ~| 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:327217 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfwindow updating by multiple .cfm's
Hi all, I would like to create a page or cfwindow that I can use as sort of a debug/display that any .cfm file could write output to. I envision something basic like a set of function to create, update, clear, and tear down the window. Any ideas (other than full blow ide's) would appreciated. Thanks, Bob ~| 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:315762 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Loop over field names
When submitted, the FORM scope will contain these form fields. CF can access them using the CFLOOP COLLECTION attribute. m!ke cfoutput cfloop collection=#FORM# item=blah #blah# = #FORM[blah]# br /cfloop /cfoutput ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309172 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFLOOP - why are there duplicates?
I assume the insert is going directly into a table and not into a query? [mailto:[EMAIL PROTECTED] Sent: 19 June 2008 20:35 To: CF-Talk Subject: Re: CFLOOP - why are there duplicates? Thanks. I thought I was going crazy. Not a cflocation somewhere else is there ? Is the page definitely only being called once ?? Bob ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308214 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF8 cftextarea richtext is stealing form focus, and being referred to by the form
Hello, I am having an issue where a cftextarea field on a cfform is stealing form focus without explicity being told to focus on it. If I switch out of richtext mode it works fine. I have tried setting focus on another field, but I think because of the fckeditor startup delay, without doing a timed call, it steals it back. In addition, since what I really want to do is toggle my div's innerHTML (I know.. I know) the fact that I initially hide the div area containing the cftextarea in richtext mode it fails trying to focus on it, well because I strip it out of the div on initial view. Grrr.. Anyway, anyone know how to make cftextarea/cfform combo stop taking focus ?? Thanks, Bob ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308146 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 cftextarea richtext is stealing form focus, and being referred to by the form
In addition, FCKConfig.StartupFocus= false; in fckconfig.js ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308147 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4