Use JavaScript to get flash cfform object and name
Hello and thanks in advance :) I have a flash cfform and on this form I have a cfinput button with an onclick event that calls some JavaScript. This JavaScript attempts to run the onclick event of another cfinput button on another flash cfform. The problem I''m having is that when I attempt to reference the forms nothing happens. If I run: var FrmOne = document.forms[ 0 ]; alert(FrmOne); I get an alert that says only [OBJECT] If I run: var FrmOne = document.forms[ 0 ]; alert(FrmOne.name); I get an alert with an empty string. (Btw the form has both a NAME and an ID) It's as if JavaScript cannot find the forms, but if I run a JavaScript count of the form elements on the page it comes back with 2, which is what I would expect. I've successfully fired the onclick event of a cfinput on a cfform format=flash before and I've been scouring every forum I can find, but no one seems to have covered this particular problem, unless of course I've just been searching it all wrong. Any help is very appreciated!! ~| 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:357069 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Use JavaScript to get flash cfform object and name
Hello and thanks in advance :) I have a flash cfform and on this form I have a cfinput button with an onclick event that calls some JavaScript. This JavaScript attempts to run the onclick event of another cfinput button on another flash cfform. The problem I''m having is that when I attempt to reference the forms nothing happens. If I run: var FrmOne = document.forms[ 0 ]; alert(FrmOne); I get an alert that says only [OBJECT] If I run: var FrmOne = document.forms[ 0 ]; alert(FrmOne.name); I get an alert with an empty string. (Btw the form has both a NAME and an ID) It's as if JavaScript cannot find the forms, but if I run a JavaScript count of the form elements on the page it comes back with 2, which is what I would expect. I've successfully fired the onclick event of a cfinput on a cfform format=flash before and I've been scouring every forum I can find, but no one seems to have covered this particular problem, unless of course I've just been searching it all wrong. Any help is very appreciated!! ~| 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:357070 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Vivio Down?
Anyone here host on Viviotech? My site's down and their main website isn't responding. -- Josh ~| 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:356024 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Vivio Down?
Oh, looks like it's back up now. Carry on. -- Josh On Thu, Jun 20, 2013 at 1:36 PM, Wil Genovese jugg...@trunkful.com wrote: Yes - I just lost a few client sites too Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Jun 20, 2013, at 3:35 PM, Josh Nathanson joshnathan...@gmail.com wrote: Anyone here host on Viviotech? My site's down and their main website isn't responding. -- Josh ~| 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:356026 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF running out of steam
Why is everyone talking about Flash in the past tense? Looks like it's still available for sale from Adobe to me: http://www.adobe.com/products/flash.html Also: - Flash is used by Google hangouts - Flash is used by YouTube - Flash is used by Hulu Hardly seems dead... -- Josh On Tue, Mar 19, 2013 at 2:27 PM, Dave Watts dwa...@figleaf.com wrote: Yeah, much as I personally can't stand Flash (*), it was definitely a very successful product. The client app had more market penetration than probably any other internet-based product (97% of browsers had it installed, or something?), and that it was around for 15-odd years in the IT industry is really a long time for an application. I'm not much for investing, but I'm inclined to ask Rick which products are obvious losers just so I can invest in them. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:355107 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How would I change this to a div
Think you might need a float:left on your divs so they line up next to each other. -- Josh On Fri, Sep 21, 2012 at 1:48 PM, Bruce Sorge sor...@gmail.com wrote: That did not work either. I did find a piece of code that actually generates a barcode as an image. So what I was thinking was creating an image with CF and then referencing that. Is there a way to create a new image in CF? I was looking at CFIMAGE but I do not see where I can pass the barcode text/numbers and make it into an actual image. The code I downloaded is encrypted so I can't make any changes to it. Bruce On Sep 21, 2012, at 1:27 PM, Russ Michaels r...@michaels.me.uk wrote: have to tried giving it a width to keep it horizontal ~| 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:352709 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How would I change this to a div
Did you try putting float:left as a style on the div? Also you could make a table with a single row and td's to get the bars next to each other. It could be that the reason the barcode is vertical is that it is stacking the divs. Divs are block elements by default so each one will be put on a new line. -- Josh On Fri, Sep 21, 2012 at 2:33 PM, Bruce Sorge sor...@gmail.com wrote: Well after realizing that I cannot access their java library with createObject(java), I decided that I am going to go ahead and change hosts. They suck balls. Never use DailyRazor.com unless you want to very basic stuff. Bruce On Sep 21, 2012, at 3:00 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I was just thinking...if you use the Barcode 3of9 font someone had mentioned earlier, my cfc would probably work great with very little tweaking. Three Ravens Consulting Eric Roberts Owner/Developer ow...@threeravensconsulting.com tel: 630-486-5255 fax: 630-310-8531 http://www.threeravensconsulting.com -Original Message- From: Bruce Sorge [mailto:sor...@gmail.com] Sent: Friday, September 21, 2012 3:49 PM To: cf-talk Subject: Re: How would I change this to a div That did not work either. I did find a piece of code that actually generates a barcode as an image. So what I was thinking was creating an image with CF and then referencing that. Is there a way to create a new image in CF? I was looking at CFIMAGE but I do not see where I can pass the barcode text/numbers and make it into an actual image. The code I downloaded is encrypted so I can't make any changes to it. Bruce On Sep 21, 2012, at 1:27 PM, Russ Michaels r...@michaels.me.uk wrote: have to tried giving it a width to keep it horizontal ~| 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:352714 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SOT: curved corners
There are a couple of jQuery plugins that do curved corners. I think they use math to draw curved corners out of 1x1 pixel divs when there is not css available (older browsers). You might want to check those out and see which ones look the best and are easiest to work with. -- Josh On Tue, Nov 29, 2011 at 1:53 PM, John M Bliss bliss.j...@gmail.com wrote: Best-practices questions re: achieving borders with curved corners. If I understand correctly, my options are: - CSS border-radius...but this only works in very new browsers and/or not always the same way, right? - images containing the curves stuck in the corners of divs...this is what I'm currently attempting but I'm clearly doing something wrong because I'm seeing lots of nasty cross-browser issues...does anyone have a URL with a good example of how to do it right? Advice? -- John Bliss - http://about.me/jbliss ~| 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:348905 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Using ColdFusion to Create an Activity Feed???
Jenny - this is a Railo implementation of a web socket gateway, but it is helpful to understand the concept. http://wiki.getrailo.org/wiki/Extensions:WebSockets_Gateway -- Josh On Tue, Oct 4, 2011 at 7:00 PM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk wrote: Interesting .. Josh, any good links on the subject you could point me to, please? TIA, Jenny Gavin-Wear Fast Track Online Tel: 01262 602013 http://www.fasttrackonline.co.uk/ -Original Message- From: Josh Nathanson [mailto:joshnathan...@gmail.com] Sent: 04 October 2011 17:53 To: cf-talk Subject: Re: Using ColdFusion to Create an Activity Feed??? If you want to get really jiggy with it, you can use a Gateway on the server side and connect to it using long polling or web sockets. This will push server changes to any connected clients immediately. -- Josh -- I am using the free version of SPAMfighter. We are a community of 7 million users fighting spam. SPAMfighter has removed 3885 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len The Professional version does not have this message ~| 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:347938 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Using ColdFusion to Create an Activity Feed???
If you want to get really jiggy with it, you can use a Gateway on the server side and connect to it using long polling or web sockets. This will push server changes to any connected clients immediately. -- Josh On Tue, Oct 4, 2011 at 9:17 AM, Raymond Camden raymondcam...@gmail.comwrote: Well, it depends a lot on the details. If you store user actions in a database, and you know the current users list of friends, then it is trivial to use SQL to get the last N activity items from your friends. Displaying it like FB simply means using Ajax to retrieve said events and display. You can create a timed event in your JS code to update this list every N seconds or so. On Tue, Oct 4, 2011 at 11:13 AM, Allan Jagos aja...@rc.com wrote: How do you use ColdFusion to create an asynchronous activity feed like you see in the upper right area of Facebook? Any examples or links would be helpful. Thanks, Allan Jagos aja...@rc.com ~| 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:347895 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: detecting mobile devices
What are you talking about Dave? It's neatly split into two clauses, and the 4-letter ones are alphabetized. Ha ha. -- Josh On Tue, Oct 4, 2011 at 2:39 PM, Dave Watts dwa...@figleaf.com wrote: This works. cfif reFindNoCase(android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino,CGI.HTTP_USER_AGENT) GT 0 OR reFindNoCase(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\- )|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\- (n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\- d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\- cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\- |on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\- a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\- |m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\- |m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-,Left(CGI.HTTP_USER_AGENT,4)) GT 0 Yes, I am a mobile device. cfelse No, I'm not a mobile device /cfif That looks like it's fun to maintain. Fortunately, there aren't ever any new mobile devices. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or ~| 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:347911 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Week Weirdness
Well, it seems the proper state of affairs would be that CF reports 41 and Linux reports 40. So the CF instance that is reporting 40 is the one that is out of whack. Maybe that would be a good jumping off point. I have Railo running on Linux and Adobe CF running on Windows here, and they both report 41 for #week( now() )#. And my Linux instance reports 40 for date +%W. -- Josh On Tue, Oct 4, 2011 at 4:20 PM, Edward Chanter firew...@cc.uk.com wrote: I suspect that one might be a throw-back to the Jurassic period but the lack of stone suggests Dell might have simply managed to construct a freak that doesn't happen to be shaped like a lemon :) Me thinks running a magnet over the case and starting again would be a good idea... lol -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: 05 October 2011 00:09 To: cf-talk Subject: Re: Week Weirdness Is the epoch of both servers identical? On Tue, Oct 4, 2011 at 7:05 PM, Edward Chanter firew...@cc.uk.com wrote: They both use jrun, I didn't change it so they should both be exactly the same. The servers are not 10 years old (fortunately) one is about 2 years old and the other 4 :) -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: 04 October 2011 23:50 To: cf-talk Subject: Re: Week Weirdness I know the various JVM versions have had issues with DST settings in the past (like 10 years ago); do your 2 servers have the same JRE configured for CF? On 10/4/2011 6:13 PM, Edward Chanter wrote: Thinking about this on a more technical level, does anyone know where CF ultimately derives the week number? When I enter #now()# I assume that's the system time but when I do #week(now())# is that the CF server taking #now()# and deriving the week or does it get that from jrun or linux or does it work things out on its own? What could make a CF 8.0.1 server on one linux machine say that the exact same date/time/timezone is week 41 and every other CF server that I know of say it's week 40? Why do I feel like an evil little [enter name of favourite nasty] has decided to inhabit one of my servers? The explanation must be so simple that I will call myself an idiot for not thinking about it when I do find out what it is -Original Message- 1. Yes, exact same date and time 2. Yes both are set to timezone London and both report BST next to the time when I do a date command in linux 3. Yes in both cases I used #week(now())# to get the CF date and date +%W to get the linux date I've setup and configured quite a few CF linux servers and have only ever seen this happen on one machine. Welcome to Weirdsville, population: me :( -Original Message- Very odd indeed. It makes sense that linux and cf would differ by 1, as cf is 1-53. However it doesn't make any sense to me why cf would return 40 on one and 41 on the other. Can you verify: 1) they are both the same server date? 2) they are both the same timezone offset? 3) they are both using CF's week() function to return the integer? ~~~ ~~| 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:347917 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf- talk/unsubscribe.cfm ~~~ ~~| 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:347922 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf- talk/unsubscribe.cfm ~| 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:347924 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) Awesome Eclipse Shortcut
Yeah, that is a sweet one. Even though I've known about it for a while, I am still in the process of training myself to use it, rather than using the Navigation pane to dig into the file tree. My first instinct is always to navigate when looking for a file. -- Josh On Fri, Sep 30, 2011 at 2:55 PM, Brook Davies cft...@logiforms.com wrote: I know its OT, and most of you probably already know it, but this shortcut saves me so much time, and I'm such a geek, that I had to post it: CTRL + SHIFT + R - then hit Enter Type a few characters of the name of the file your looking for, boom, hit enter to open it. Or if you highlight the name of a component or an include in your code (assuming the filename is similar or the same) and hit the shortcut it will select that file by default. Awesome to find that CFC or include that is buried deep somewhere.. Saves me so much time. Brook ~| 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:347861 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SQL grrr
Yup, I think Carl's is the best, though you'd probably want to throw a GROUP BY in there so you don't get multiple rows for the same ID. -- Josh On Mon, Sep 26, 2011 at 10:41 AM, Carl Von Stetten vonner.li...@vonner.netwrote: Richard, I think this will work (untested, assumes SQL Server): select t.ID from mytable t inner join mytable a on t.id = a.id and a.value = 'A' inner join mytable b on t.id = b.id and b.value = 'B' inner join mytable c on t.id = c.id and c.value = 'C' HTH, Carl ~| 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:347717 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfquickdocs.com down?
Through some digging I was able to connect it to Jacob Munson, who I believe is on this list, or at least was at one time. Jake you out there?? We need CFQuickDocs! -- Josh On Mon, Sep 26, 2011 at 11:36 AM, Kumar Shah shahku...@gmail.com wrote: http://cfquickdocs.com/ seems to be down (since yesterday) I believe. Anybody know who maintained this/can reach out to them? Has proved to be really useful for looking things up. Thanks -- Kumar Shah http://www.coldfusion-ria.com/Blog/ ~| 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:347733 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Graphical Tree Image Output
Well...you could use html/css to output divs as the boxes/lines in the chart, then use cfdocument to generate the pdf. No need for an image in that case. -- Josh On Wed, Sep 21, 2011 at 2:13 PM, Justin Scott leviat...@darktech.orgwrote: CFTREE Hi Robert, thanks for the reply. Unfortunately CFTREE is a form control. I need to generate a static image in the format of an organizational chart or family tree for inclusion in a document so that will not work in this situation. -Justin Scott ~| 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:347577 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFScript help
I'm attemping to create a function that adds spaces either in front of or behind a string. For example, I want this test string to have 6 spaces after it, plus the 4 characters in test for a total of 10 characters. I have an align variable for both left and right alignment for the spaces. So far, the only result I get is 'test ' instead of 'test ' CFSCRIPT function spaceFiller(cell, fill, align) { var newcell = ; if (len(cell) EQ 0) { cell = ; } newcell = cell; for (i=1; i EQ len(fill - (len(cell))); i=i+1) { if (align EQ R) { newcell =newcell; } else { newcell = newcell ; } } return (newcell); } /CFSCRIPT cfoutput 10 characters - align left: '#spaceFiller(test,10,L)#' /cfoutput The result I get is 'test ' and what I want is 'test ' Any help would be much appreciated - thanks in advance. -J ~| 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:346926 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFScript help
Thanks all - the built in function is exactly what I needed. I am fairly new to CF so I will definitely spend time learning the functions. Thanks again. ~| 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:346933 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: reading AIF metadata?
What sort of metadata are you after? Looks like GetFileInfo might be what you're looking for... http://coldfused.blogspot.com/2007/07/new-file-io-in-coldfusion-8-part-ii.html -- Josh On Mon, Jul 18, 2011 at 12:03 PM, Steve Logan st...@sagescholars.comwrote: An RFP just got handed to me that involves uploading and storing AIF audio files, and reading and storing the metadata of those files. So far, Google has not come up with a lot of info on reading in the metadata of these files - especially in a Windows/CF environment. Any pointers on where I should be looking or if someone else has built a library or function that can read this data? ~| 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:346260 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Coldfusion 9 install on Mac OS
Couple things: - make sure the page has a .cfm extension - make sure you have cfoutput tags around the variable If you have both those things, then further code example/environment setup information is necessary. -- Josh On Tue, Jan 25, 2011 at 2:05 PM, Fred Weaver f...@fredweaver.biz wrote: total newbie! I've installed Coldfusion 9 in my iMac, ColdFusionLauncher indicates that it is running. I've create a very simple Hello html with CF tags and a #variable#, but the output does not evaluate the variable, it just prints out #variable#. I'm taking an on-line course the briefly covers Coldfusion, but I can't get any of the sample exercises to work. Did I miss setting up something in the install? Should html and cfm files be in a specific folder? I've run Apache and PHP on localhost without any problems. I just feel like I'm missing one little step. ~| 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:341202 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Google Checkout integration
I use Authorize.net for subscriptions. They have a decent API and I believe there's a CFC available on Riaforge to interface with their API. -- Josh On Fri, Jan 21, 2011 at 2:12 AM, Stefan Richter ste...@flashcomguru.comwrote: I'd also be interested in that. And on that note, what does everyone else use when it comes to subscriptions? Paypal is ok for the basics I guess, but I could really use a system that let's me adjust the price from one month to the next for upgrades/downgrades. Any recommendations welcome. Regards, Stefan On 21 Jan 2011, at 00:32, Jeff Gladnick wrote: Does anyone have any code they'd like to share concerning Google checkout integration? The only thing on riaforge is several years old. Anyone out there with newer code, particularly concerning the new subscription features added recently? ~| 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:341095 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Google Checkout integration
Thanks for the clarification Mark. The one I use is ARB, and I'm able to set up and update subscriptions pretty easily with that. The one headache I have with them is that AFAIK there's no pingback option when a scheduled payment fails...they just send you an email, so I have to use that emailed information and do some manual stuff in my application. I haven't looked into it for a while so maybe they have that now. -- Josh On Fri, Jan 21, 2011 at 10:48 AM, Mark A. Kruger mkru...@cfwebtools.comwrote: Josh, To add to that... Authorize.net (AN) has 2 options... one is ARB (automatic reoccurring billing). It's a bit tricky if you have things like free trials and discounts etc. But not too bad. The second is CIM - where AN holds onto the CC info and you can charge against it using the API. So with this method you are responsible for the billing engine piece of it (you create the charges yourself using a task or whatever - rather than having AN do it on a schedule). -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Josh Nathanson [mailto:joshnathan...@gmail.com] Sent: Friday, January 21, 2011 12:28 PM To: cf-talk Subject: Re: Google Checkout integration I use Authorize.net for subscriptions. They have a decent API and I believe there's a CFC available on Riaforge to interface with their API. -- Josh On Fri, Jan 21, 2011 at 2:12 AM, Stefan Richter ste...@flashcomguru.comwrote: I'd also be interested in that. And on that note, what does everyone else use when it comes to subscriptions? Paypal is ok for the basics I guess, but I could really use a system that let's me adjust the price from one month to the next for upgrades/downgrades. Any recommendations welcome. Regards, Stefan On 21 Jan 2011, at 00:32, Jeff Gladnick wrote: Does anyone have any code they'd like to share concerning Google checkout integration? The only thing on riaforge is several years old. Anyone out there with newer code, particularly concerning the new subscription features added recently? ~| 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:341102 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Google Checkout integration
Yeah...I've meant to set up an email box as you've done, but never gotten to it. It would be the last step to fully automate my application. So how do you do that...do you do CFPOPs as a scheduled task and then parse the email body for ARB account information? -- Josh On Fri, Jan 21, 2011 at 2:45 PM, Mark A. Kruger mkru...@cfwebtools.comwrote: Josh, Yes.. I agree - no real time call back when ARB posts... that would be nice. We set up email boxes for the report and consume the emails and files automatically so we can flag exceptions, then we send out an exceptions report to the end user - mostly cards over limit or expired. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Josh Nathanson [mailto:joshnathan...@gmail.com] Sent: Friday, January 21, 2011 2:12 PM To: cf-talk Subject: Re: Google Checkout integration Thanks for the clarification Mark. The one I use is ARB, and I'm able to set up and update subscriptions pretty easily with that. The one headache I have with them is that AFAIK there's no pingback option when a scheduled payment fails...they just send you an email, so I have to use that emailed information and do some manual stuff in my application. I haven't looked into it for a while so maybe they have that now. -- Josh On Fri, Jan 21, 2011 at 10:48 AM, Mark A. Kruger mkru...@cfwebtools.comwrote: Josh, To add to that... Authorize.net (AN) has 2 options... one is ARB (automatic reoccurring billing). It's a bit tricky if you have things like free trials and discounts etc. But not too bad. The second is CIM - where AN holds onto the CC info and you can charge against it using the API. So with this method you are responsible for the billing engine piece of it (you create the charges yourself using a task or whatever - rather than having AN do it on a schedule). -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Josh Nathanson [mailto:joshnathan...@gmail.com] Sent: Friday, January 21, 2011 12:28 PM To: cf-talk Subject: Re: Google Checkout integration I use Authorize.net for subscriptions. They have a decent API and I believe there's a CFC available on Riaforge to interface with their API. -- Josh On Fri, Jan 21, 2011 at 2:12 AM, Stefan Richter ste...@flashcomguru.comwrote: I'd also be interested in that. And on that note, what does everyone else use when it comes to subscriptions? Paypal is ok for the basics I guess, but I could really use a system that let's me adjust the price from one month to the next for upgrades/downgrades. Any recommendations welcome. Regards, Stefan On 21 Jan 2011, at 00:32, Jeff Gladnick wrote: Does anyone have any code they'd like to share concerning Google checkout integration? The only thing on riaforge is several years old. Anyone out there with newer code, particularly concerning the new subscription features added recently? ~| 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:341104 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is Coldfusion losing it biggest asset?
Michael is echoing what I meant to say; I should have been more clear that when I said grow the product I actually meant grow the user base of the product. On Thu, Jan 13, 2011 at 6:27 PM, Michael Grant mgr...@modus.bz wrote: You really believe they're not grow[ing] the product with all of those advances and investment and effort?? I know for me the issue isn't that they aren't growing the product. The product just keeps getting better. It's that they aren't growing the user base enough. ~| 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:340890 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: drag and drop widgets
jQuery is the best overall js library for RIA I reckon, but not much inthe way of drag'n'drop widgets. jQuery UI is a separate library that deals with the draggy and droppy type stuff. The first couple iterations were a little rough but it is much improved now. The syntax is very similar to jQuery syntax and easy to use. http://jqueryui.com -- Josh ~| 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:340804 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Is Coldfusion losing it biggest asset?
My guess is that Adobe makes a small but reliable profit with ColdFusion, and therefore has very little incentive to spend money marketing it. They are probably quite happy collecting license fees and paying a few devs to crank out new versions. This bodes well in that as long as it is profitable they won't kill it entirely, but it's certainly no way to grow the product. -- Josh On Thu, Jan 13, 2011 at 5:41 PM, Michael Grant mgr...@modus.bz wrote: No. I'm comparing little apples (Allaire) to bigger apples (Macromedia) to enormous apples (Adobe). I've been using CF for many many years. I've done a lot to spread the word in my neck of the woods. I've been laughed at for years for my choice of go-to languages. I've talked until I'm blue in the face defending CF against all the uninformed opinions and pre-conceived notions. I've had to convince clients why CF is a good choice. I've fought the good fight since v4. And I have noticed, as I'm sure others have, that since Adobe purchased Macromedia CF seems to be treated like the ugly cousin that came with Flash. It's about optics. And since Adobe got CF it is virtually invisible in the dev world outside of it's community. It's can't be all left up to the user base to make the product successful. Where we're at right now with CF is as far as the community can take it. That's what I think anyway. For whatever that's worth. On Thu, Jan 13, 2011 at 8:21 PM, Matt Quackenbush quackfu...@gmail.com wrote: Hmm. Isn't that exactly what you (and others) are doing, too? Comparing apples to oranges? On Thu, Jan 13, 2011 at 7:18 PM, Michael Grant wrote: He's comparing free open source products (apples) to extremely expensive products (oranges) and saying the reason it isn't successful is because the community hasn't evangelized enough. ~| 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:340821 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Amazon EC2 Windows 2008 Coldfusion Server
Sorry for the piggyback off of this thread, but I am thinking of running the free micro instance for a year thing to test out a project I am working on (nothing in production :D). I don't have much experience in running a server like this, so I am wondering if it is even feasible to run CF9, LCDS and mySQL on a micro instance? Or would I need to upgrade to one of the larger ones? Josh Dura On 1/4/2011 4:43 PM, Richard Steele wrote: Ok, great. I've got my Windows Server Instance up and running! Now I'm downloading the CF8 Developer's Edition. Can I install both CF8 and CF9 Developer's Edition? Our current production server is CF8, but would like to test our code in CF9 before upgrading. ~| 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:340533 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Amazon EC2 Windows 2008 Coldfusion Server
Yeah, that's what I figured. I'll give it a shot since its free for the first year for the micro instance and hope for the best. Thanks for the detailed responses all :) Josh On 1/6/2011 1:39 PM, Stefan Richter wrote: I'm running a low traffic MySQL install on a micro instance. Works very well. But I think you are pushing things in terms of memory with LCDS and CF as well. Worth a try though. Or you could use MySQL on a separate instance, but then again MySQL is your smallest issue I think :-) The great thing is you could try it (I hope you're planning on using *nix for this as Windows will eat even more resources) and if it does not work detach the EBS volume and use a small instance. You do not have to decide up front what instance type you want, you can start with one and then upgrade/downgrade. Stefan On 6 Jan 2011, at 19:31, Josh Dura wrote: Sorry for the piggyback off of this thread, but I am thinking of running the free micro instance for a year thing to test out a project I am working on (nothing in production :D). I don't have much experience in running a server like this, so I am wondering if it is even feasible to run CF9, LCDS and mySQL on a micro instance? Or would I need to upgrade to one of the larger ones? Josh Dura ~| 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:340537 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: index.cfm being hacked (now application.cfm)
AFAIK (kinda guessing here) Google doesn't sniff the files themselves, they just hit a link and sniff the resulting HTML. So anything that's output to the resultant page, whether on the index.cfm or application.cfm, will be picked up by Google. -- Josh On Fri, Dec 10, 2010 at 1:49 PM, Mike Little m...@nzsolutions.co.nz wrote: thanks for that mary. this seems like a good idea. i will contact hostek today to try and have the ftp restricted. because they are modifying just the application file now, i think it must be an auto script as when they were attacking the index file the links were very visible to google. it doesn't make sense now to include their links in the application?? (changed the ftp password for the umpteenth time today as well). Hhm, if they are getting in via FTP, which is certainly a strong possibility as well, you might want to try turning it off for that site, or at least restricting it to only the IP addresses that use it. I have seen numerous attacks over unsecured FTP accounts, so only use SFTP and restricted by IP these days and it's definitely helped greatly reduce such issues. --- Mary Jo ~| 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:340007 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ColdFusion LCDS Session Management
Has anyone on the list had any experience implementing session management for LiveCycle Data Services into ColdFusion 9? I am building an app using CF, Flex LCDS and am trying to find a way to call a few clean up methods on the CF side when a user disconnects. Unfortunately, I haven't found much online other than a few unanswered questions on the same topic. I am pretty new to CF LCDS, but it seems it would need to use the FlexSession Java class (something like this... http://sujitreddyg.wordpress.com/2008/05/16/session-data-management-in-flex-remoting/), but I have no idea how to use java event listeners within CF. Thanks for any help ahead of time. Josh Dura ~| 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:339438 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JRunConfig Errorurl Not Working
Hello, I have another post on this message board that relates to this but I'm creating a separate post because this is really just my attempt at a temporary workaround for that problem and I think they are completely separate issues. I am running ColdFusion 8 with Apache 2.2.3 on Linux. In my Apache configuration file I specified the following in my JRun configuration area: JRunConfig Errorurl http://www.somedomain.com/error.cfm The page is accessible but for some reason when a JRun error occurs I don't get redirected to the proper Errorurl. I looked at the Apache connector source code and found the following comment in the code that handles the redirect: This code seems to work for IIS but not for any of the other web servers. I have tried using domains that exist on the machine itself as well as just trying to set the Errorurl to Google.com. Any insight would be appreciated. Thanks, John Did you ever figure this out? I'm having the same problem where it's not redirecting when JRun is down. Using CF9/Apache2.2.15. ~| 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:337410 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
JRunconfig Errorurl not working
I'm having a hard time getting this redirect to work. I'm running CF9/Apache 2.2.15 and in the JRun Settings for the Apache config I have are: JRunConfig Errorurl http://localhost/serverDown.html However, whenever JRun is down or starting up I still get the default error page. What am I missing?? Thanks. ~| 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:337412 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: sending a form through CF and catching the results
There is no sensible reason for requiring CSV conversion to go via HTTP - since the vast majority of the time this isn't necessary/desired - having a dedicated cfcsv tag and/or CsvParse function would have made sense. Yup, I totally agree with that. Guess I misread the emphasis in your previous comment. -- Josh ~| 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:336621 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: sending a form through CF and catching the results
Actually, it's probably something only someone from the Allaire days could tell us. My guess would be that since they had the cfquery functions already, it's easier to just turn the CSV into a query and use that existing functionality, than to write a bunch of similar functions specifically for CSV's. -- Josh ~| 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:336594 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Web service operation... with parameters...cannot be found. error
Web services tend to get cached -- I notice you said you get the same error even removing all the code so it sounds like that is what's happening. There are a couple of ways you can clear them: 1) In the CF administrator (if you have access) there is a section where you can see any cached webservices and clear them manually. 2) You can add refreshWSDL=true as an additional attribute to your cfinvoke tag. This will slow things down but it can be very useful when in development. -- Josh -Original Message- From: Ray Meade [mailto:raym...@yahoo.com] Sent: Tuesday, August 10, 2010 9:17 AM To: cf-talk Subject: Web service operation... with parameters...cannot be found. error I keep getting this error no matter what I try (and I've been at it for 2 days now): Web service operation NEWJOB with parameters {JOBMINCOMPENSATION={250},JOBTYPE={1},JOBVERIFICATION={0},USERNAME={**}, JOBCONTACTPHONE={123-456-7890},JOBCOMPANYNAME={Spencer Stuart},JOBDESCRIPTION={![CDATA[This is a really cool job for a developer who wants to make a lot of money.]]},JOBCONTACTURL={https://www.6figurejobs.com},JOBCONTACTSTATUS={null },JOBMINEXPERIENCE={1},JOBCOMPENSATION={You can make alot of cash plus huge stock options!},JOBFUNCTIONS={201,202,203},JOBTITLE={Developer Level III},JOBCONTACTNAME={Dave Piccirillo},JOBCODE={SP101},JOBMAXEXPERIENCE={2},JOBLOCATION={Milford},JOBCO ntactemail={da...@6figurejobs.com},JOBCONTACTFAX={987-654-3210},JOBINDUSTRIE S={101,102,103},JOBOPPORTUNITY={fulltime,startup},JOBSHOWRIGHTEYES={null},JO BRECEIVERIGHTEYES={null},JOBSTATE={307},JOBIONUMBER={null},PASSWORD={*}} cannot be found. (I blanked out the username and password info for security) Here is my web service code: (JobUpdates.cfc) cfcomponent cffunction name=NEWJOB access=remote returntype=void output=no cfargument name=USERNAME type=string cfargument name=PASSWORD type=string cfargument name=JOBCOMPANYNAME type=string cfargument name=JOBCODE type=numeric cfargument name=JOBTITLE type=string cfargument name=JOBINDUSTRIES type=string cfargument name=JOBFUNCTIONS type=string cfargument name=JOBLOCATION type=string cfargument name=JOBSTATE type=numeric cfargument name=JOBDESCRIPTION type=string cfargument name=JOBOPPORTUNITY type=string cfargument name=JOBCOMPENSATION type=string cfargument name=JOBMINCOMPENSATION type=numeric cfargument name=JOBMINEXPERIENCE type=numeric cfargument name=JOBMAXEXPERIENCE type=numeric cfargument name=JOBCONTACTNAME type=string cfargument name=JOBCONTACTEMAIL type=string cfargument name=JOBCONTACTSTATUS type=numeric cfargument name=JOBCONTACTURL type=string cfargument name=JOBCONTACTPHONE type=string cfargument name=JOBCONTACTFAX type=string cfargument name=JOBSHOWRIGHTEYES type=numeric cfargument name=JOBRECEIVERIGHTEYES type=numeric cfargument name=JOBIONUMBER type=string cfargument name=JOBTYPE type=numeric cfargument name=JOBVERIFICATION type=numeric /cffunction /cfcomponent (I removed all the code after this for testing purposes and I still get the error just trying to find the web service) And here's my code to consume it: (I created this just for testing purposes) cfinvoke webservice=http://orld-6fjdev/webservices/JobUpdates.cfc?wsdl; method=NEWJOB cfinvokeargument name=USERNAME value=MeganM/ cfinvokeargument name=PASSWORD value=stuart/ cfinvokeargument name=JOBCOMPANYNAME value=Spencer Stuart/ cfinvokeargument name=JOBCODE value=SP101/ cfinvokeargument name=JOBTITLE value=Developer Level III/ cfinvokeargument name=JOBINDUSTRIES value=101,102,103/ cfinvokeargument name=JOBFUNCTIONS value=201,202,203/ cfinvokeargument name=JOBLOCATION value=Milford/ cfinvokeargument name=JOBSTATE value=307/ cfinvokeargument name=JOBDESCRIPTION value=![CDATA[This is a really cool job for a developer who wants to make a lot of money.]]/ cfinvokeargument name=JOBOPPORTUNITY value=fulltime,startup/ cfinvokeargument name=JOBCOMPENSATION value=You can make alot of cash plus huge stock options!/ cfinvokeargument name=JOBMINCOMPENSATION value=250/ cfinvokeargument name=JOBMINEXPERIENCE value=1/ cfinvokeargument name=JOBMAXEXPERIENCE value=2/ cfinvokeargument name=JOBCONTACTNAME value=Dave Piccirillo/ cfinvokeargument name=JOBCONTACTEMAIL value=da...@6figurejobs.com/ cfinvokeargument name=JOBCONTACTSTATUS omit=true/ cfinvokeargument name=JOBCONTACTURL value=https://www.6figurejobs.com/ cfinvokeargument name=JOBCONTACTPHONE value=123-456-7890/ cfinvokeargument name=JOBCONTACTFAX value=987-654-3210/ cfinvokeargument name=JOBSHOWRIGHTEYES omit=true/ cfinvokeargument name=JOBRECEIVERIGHTEYES omit=true
Problems with multiple instances in CF9
I'm having a few issues with a couple of our staging servers that are running multiple instances of CF9, and I'm not sure if they're set up correctly. I have CF9 Enterprise multiserver installed and I created 4 additional instances using the Instance Manager. I also created a specific jvm for each one to use and reregistered each service to use the custom jvm. In Apache I added the following to each vhost (changing the serverstore and port): IfModule mod_jrun22.c JRunConfig Serverstore C:/JRun4/lib/wsconfig/muffin/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51000 /IfModule However, when the service is stopped for one of the sites, instead of getting the JRun 500 error it will instead return a CF error or the site will still come up. But if I stop the main CF server service it will kill all the sites. So it seems that all the instances are still tied to the main service. Is there something I'm missing here or something that wasn't configured correctly? I used this guide when setting it all up. http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3 64104-7fc4.html Thanks for any help. ~| 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:335540 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Looking for a CF Recipe script!
Yeah, that may be the explanation, but IMO it's still dumb to do arrays that way. Nobody calls their thumb their zeroth finger. A whole other discussion is whether it was smart for CFML to correct this issue. -- Josh -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, July 08, 2010 3:20 PM To: cf-talk Subject: Re: Looking for a CF Recipe script! I'm sorry - but I still say the guy who invented arrays was drunk and came up with the its an offset excuse later on to explain the whole 0 based thing. I think a simpler explanation is that it's pretty significant in binary. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:335188 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Looking for a CF Recipe script!
Obviously, Dave. I was referring to higher level languages, where a decision can be made (and has been in the case of CFML) to use a more humanist approach to array indexing. -- Josh -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, July 08, 2010 4:01 PM To: cf-talk Subject: Re: Looking for a CF Recipe script! Yeah, that may be the explanation, but IMO it's still dumb to do arrays that way. Nobody calls their thumb their zeroth finger. Computers are different from hands, programming languages are different from natural languages, computers don't understand base-10 math. http://en.wikipedia.org/wiki/Computer_numbering_formats http://en.wikipedia.org/wiki/Binary_numeral_system http://en.wikipedia.org/wiki/Octal http://en.wikipedia.org/wiki/Hexadecimal Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| 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:335192 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Looking for a CF Recipe script!
So, you don't clearly appear to be in favor of CF behaving differently from lower-level languages. Sorry I was not clear. Yes, I am in favor of CFML behaving differently, and I think from a human perspective, 1-based indices make sense. When I said A whole other discussion is whether it was smart for CFML to 'correct' this issue I was not taking a stand either way on the smartness of CFML doing that -- merely opening up a possible discussion point for others, since there are positives and negatives. One obvious negative is that it can be used by CF detractors as an argument for CFML not being a serious language. Hopefully the OP has used all the great info in this awesome thread to develop a kick-ass recipe script! -- Josh -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, July 08, 2010 4:43 PM To: cf-talk Subject: Re: Looking for a CF Recipe script! Obviously, Dave. I was referring to higher level languages, where a decision can be made (and has been in the case of CFML) to use a more humanist approach to array indexing. I'm confused. Aren't you the same guy who a few minutes ago wrote A whole other discussion is whether it was smart for CFML to 'correct' this issue. So, you don't clearly appear to be in favor of CF behaving differently from lower-level languages. But most other programming languages are essentially based on C/C++ in syntax, and those are lower-level languages. So are you saying that C-style languages should behave differently? Or that some C-style languages - arguably higher-level languages like Java and C#? - should behave differently from others? Don't take this as a personal attack or anything - it's not - I just don't really understand your point. This is basically the argument for COBOL, and look how that turned out. If you want to be a competent programmer, right now, you need to understand pretty well how computers work. That may not be the case in the future, but it is right now. CF hides a lot of the complexity of computers, but it can't hide all of the complexity. This is why, in my opinion, many CF programmers who don't have this deeper understanding write programs that fail as their scope, complexity or usage grow significantly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| 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:335194 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Problems with slashes in JSON
In your cfsavecontent, get rid of all the tabs and carriage returns. This will make your code less readable, but it should take care of the problem you're having. So it might end up looking like this: cfsavecontent variable=loc.rtnContentcfoutput query=loc.custListli#Trim(loc.custList.full_name)# - #Trim(loc.custList.addr_line1)#, #Trim(loc.custList.city)#, #Trim(loc.custList.state)#/cfoutput/cfsavecontent -- Josh -Original Message- From: Eric Cobb [mailto:cft...@ecartech.com] Sent: Wednesday, June 09, 2010 2:35 PM To: cf-talk Subject: Problems with slashes in JSON I can't figure this thing out for the life of me, and I know it's got to be something simple that I'm missing. Here's what I'm trying to do. I'm using jQuery to hit a CFC and return data. The CFC actually queries the database, loops through results and creates list items for each row. I then return the list items to jQuery, which populates my UL with them. Here's my problems and what I've done so far: * returning the data from my CFC as a string causes jQuery to actually display the html code in the brower, so I literally see liEric Cobb/li. * returning the data as JSON shows the list items correctly, but my page is littered with \\n\\t\\t\\t\\t at the end of every record. * I used a regex to clean up all of the line breaks, carriage returns, and tabs in my CFC before returning to jQuery and that works. * In every record that contains a slash / in the data, the slash has been replaced with \\\/. * Nothing I do can get rid of these slashes. I've tried RegEx, SerializeJSON(), and JSStringFormat() in CF, and a whole whoost of jQuery escape(), html(), text(), and replace() functions, and nothing works. I think my biggest problem is that I've staring at and fighting with this thing for too long. Here's my method: !--- get a list of all external customers for AJAX calls --- cffunction name=AJAXgetAllCustomers access=remote output=false returnformat=json !--- create a struct to hold our local variables. --- cfset var loc = structNew() !--- returns a query. --- cfset loc.custList = getAllCustomers() / cfsavecontent variable=loc.rtnContent cfoutput query=loc.custList li#Trim(loc.custList.full_name)# - #Trim(loc.custList.addr_line1)#, #Trim(loc.custList.city)#, #Trim(loc.custList.state)# /cfoutput /cfsavecontent !--- remove all line breaks, carriage returns, and tabs. --- cfset loc.rtnContent = ReReplace(loc.rtnContent,[#chr(10)#|#chr(13)#|#chr(9)#],,ALL) cfreturn SerializeJSON(Trim(loc.rtnContent)) /cffunction And here is my jQuery call: script type=text/javascript $(document).ready(function(){ $('#contentdiv').load('myCFC.cfc?method=AJAXgetAllCustomers'); }); /script So, can someone please tell me how to escape the characters so that I can get rid of the \\\/ in my display output? And while I'm on the subject, surely there has got to be a better way than having to manually escape every character individually that may cause problems. I shouldn't have to run regex and whatnot to make everything work. In my mind, SerializeJSON() (or returnformat=json for that matter) should have everything escaped and formatted nicely for jQuery, who should then know how to parse everything and display is correctly. Am I wrong? -- Thanks, Eric Cobb ECAR Technologies, LLC http://www.ecartech.com http://www.cfgears.com ~| 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:334439 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Dynamic Getters and Setters
It depends what you are passing in the component attribute. If it is a string (i.e. dot-delimited path), it will indeed instantiate the object. If it's an already created object, it will just call the method. -- Josh -Original Message- From: Brad Haas [mailto:beh...@gmail.com] Sent: Wednesday, May 26, 2010 10:56 AM To: cf-talk Subject: Re: Dynamic Getters and Setters But isn't it a problem to use CFINVOKE with getters and setters? Wouldn't the object be reinstantiated for every single method call? Am I wrong in assuming this? --Brad **untested** cfif theField IS NOT submit cfset theMethod = theObject[set theField] / cfset theMethod(theField) / /cfif I don't use cfinvoke, so I may have the syntax a bit wrong... cfinvoke component=#theObject# method=set#theField# cfinvokeargument name=#theField# value=#theField# / /cfinvoke HTH ~| 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:334011 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: jquery $.ajax - need help with json syntax
I think jQuery's serialize() only works on forms. Since you can't pass a JS object to the server, you'll probably have to serialize it yourself before you pass it in the ajax call. Also since you are doing $(dat).serialize(), jQuery is looking for a tag named dat rather than the variable dat. You would want $( dat ).serialize(), but I'm not sure that would work anyway, since serialize() is geared toward form serialization. -- Josh -Original Message- From: Tony Bentley [mailto:cascadefreehee...@gmail.com] Sent: Thursday, April 29, 2010 9:53 AM To: cf-talk Subject: Re: jquery $.ajax - need help with json syntax If I use serialize I get nothing passed as a post argument. I am requiring all args and I get the error as normal, ...required but not passed in. var dat = { 'OBJ': obj, 'VAL': val, 'ATTR': attr, 'TIMESTAMP': time }; return $.ajax({ url: mycfc.cfc?method=dbupdate, dataType: 'json', data: $(dat).serialize(), type: 'post', success: callBack }); Serialize() seems to return nothing. ~| 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:333249 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: ColdFusion Builder Released!
Strictly speaking, there's no such thing as overcharging customers. If you think it costs too much, you don't buy it, or you find a cheaper product. That's how the free market works. There are some exceptions to this, for example in the realm of health care, where you may need a prescription drug to stay alive. But software definitely is not one of the exceptions. -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Monday, March 22, 2010 2:50 PM To: cf-talk Subject: RE: ColdFusion Builder Released! And that's all well and good. If I could develop a plug-in for Eclipse, I'd try to sell it. Making money is *not* evil. Overcharging customers (which is the underlying issue driving people's comments, I believe) is... I hope Adobe had to pay a hefty licensing fee to the Eclipse Foundation to build on the platform...that would be great, to see Adobe contributing something to the community that feeds them... -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Monday, March 22, 2010 5:25 PM To: cf-talk Subject: Re: ColdFusion Builder Released! As just an FYI, I believe commercial products on Eclipse are part of their plan: http://www.eclipse.org/org/ A unique aspect of the Eclipse community and the role of the Eclipse Foundation is the active marketing and promotion of Eclipse projects and wider Eclipse ecosystem. A healthy vibrant ecosystem that extends beyond the Eclipse open source community to include things like commercial products based on Eclipse, other open source projects using Eclipse, training and services providers, magazines and online portals, books, etc, are all key to the success of the Eclipse community. On Mon, Mar 22, 2010 at 4:22 PM, Raymond Camden rcam...@gmail.com wrote: By this argument it means no one could charge for Eclipse plugins. There are quite a few very decent, very well done Eclipse plugins that are not free. Shoot, by this argument no one should sell work they develop on Railo, since Railo is free. I'm sure you didn't imply that, but I think it is great the Eclipse plugin allows for this type of market. ~| 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:332046 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: How do people transfer data between databases nowdays?
+1 for RedGate -- we use it here at work. There's some info on scripting here: http://www.red-gate.com/supportcenter/Content.aspx?p=SQL%20Comparec=SQL_Com pare\help\8.1\sc_cl_examplesusingthecl.htm -Original Message- From: John M Bliss [mailto:bliss.j...@gmail.com] Sent: Wednesday, March 03, 2010 9:10 AM To: cf-talk Subject: Re: How do people transfer data between databases nowdays? I say again: http://www.red-gate.com/products/SQL_Data_Compare/ On Wed, Mar 3, 2010 at 11:05 AM, Mike Kear afpwebwo...@gmail.com wrote: Thanks Will, but the problem at issue is how do people move data from the staging/dev MSSQL machines to the production MSSQL machines, if the following limitations apply: [A] No console access because it's a shared host so therefore can't take a backup, FTP It to the remote machine and restore it there. [B] Replication features of MSSQL wont work either for the same reason. [C] Can't detach the database on the staging machine, FTP it to the remote server, then attach it there . no console access. [D] it must respect the data integrity features of both databases - default values, auto numbering indexes, foreign keys, non-null fields etc. [E] preferably it should be able to be automated, so that on a schedule, databases can be published to the production site (or the converse - copied to the local staging server) without operator intervention. I should say that Microsoft dont have such a product - their solutions can't be automated, or if they can, there's no one at Microsoft in the last 3 years of asking that can tell me how. So can i really be the only person who's using SQLServer in a shared hosting environment and therefore has to do this on a regular basis? I can do as Maureen suggested and write a ColdFusion solution, and that would work, but its a lot of work for the case where there's a one-off - an upload of a single table or an initial upload of a database when deploying the site. How do the rest of you do this?? A couple of years ago, Microsoft GAVE us for FREE copies of MSSQL2000 - the full-blown version, which was great, but since then everyone's moved on to MSSQL2005, which is not compatible. The free express version has 50 million features that no one would ever use, a bazillion features that most people would use, EXCEPT unless I'm not seeing what's staring me in the face, you can't import/export from one MSSQL database to another. AARRRGGHH!!! Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Mar 4, 2010 at 12:46 AM, Will Tomlinson w...@wtomlinson.com wrote: Now that my dev machine is being rebuilt, one of the things i have to do is work out if the way I've been doing things is still the best way of doing them. +1 dbconvert.com. They have an amazing slick application there. I happen to use it to convert MSSQL MySQL. Works like a charm. -- ~| 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:331317 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: How do people transfer data between databases nowdays?
Here's some even better information on RedGate automation: http://www.red-gate.com/supportcenter/Content.aspx?p=SQL%20Data%20Comparec= knowledgebase\SQL_Data_Compare\KB200711000189.htm Looks like the package you'd want is $695, well worth it if it can be automated and save a bunch of work for you. -- Josh -Original Message- From: John M Bliss [mailto:bliss.j...@gmail.com] Sent: Wednesday, March 03, 2010 9:10 AM To: cf-talk Subject: Re: How do people transfer data between databases nowdays? I say again: http://www.red-gate.com/products/SQL_Data_Compare/ On Wed, Mar 3, 2010 at 11:05 AM, Mike Kear afpwebwo...@gmail.com wrote: Thanks Will, but the problem at issue is how do people move data from the staging/dev MSSQL machines to the production MSSQL machines, if the following limitations apply: [A] No console access because it's a shared host so therefore can't take a backup, FTP It to the remote machine and restore it there. [B] Replication features of MSSQL wont work either for the same reason. [C] Can't detach the database on the staging machine, FTP it to the remote server, then attach it there . no console access. [D] it must respect the data integrity features of both databases - default values, auto numbering indexes, foreign keys, non-null fields etc. [E] preferably it should be able to be automated, so that on a schedule, databases can be published to the production site (or the converse - copied to the local staging server) without operator intervention. I should say that Microsoft dont have such a product - their solutions can't be automated, or if they can, there's no one at Microsoft in the last 3 years of asking that can tell me how. So can i really be the only person who's using SQLServer in a shared hosting environment and therefore has to do this on a regular basis? I can do as Maureen suggested and write a ColdFusion solution, and that would work, but its a lot of work for the case where there's a one-off - an upload of a single table or an initial upload of a database when deploying the site. How do the rest of you do this?? A couple of years ago, Microsoft GAVE us for FREE copies of MSSQL2000 - the full-blown version, which was great, but since then everyone's moved on to MSSQL2005, which is not compatible. The free express version has 50 million features that no one would ever use, a bazillion features that most people would use, EXCEPT unless I'm not seeing what's staring me in the face, you can't import/export from one MSSQL database to another. AARRRGGHH!!! Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Mar 4, 2010 at 12:46 AM, Will Tomlinson w...@wtomlinson.com wrote: Now that my dev machine is being rebuilt, one of the things i have to do is work out if the way I've been doing things is still the best way of doing them. +1 dbconvert.com. They have an amazing slick application there. I happen to use it to convert MSSQL MySQL. Works like a charm. -- ~| 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:331318 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Where to encrypt - cf or db or both?
To me, recommending a service is like answering the question How do you hammer a nail? with the answer being Hire a contractor. Well...not exactly. There aren't huge legal ramifications if you decide to hammer the nail yourself. In this case hire a contractor is the right answer. ~| 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:330918 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Where to encrypt - cf or db or both?
So what's the best way to carry it to the final order commitment step? Session variables? Best case scenario, it IS the final order step. That way it is never stored in a persistent scope. Most eCommerce sites seem to do it that way (there are exceptions of course). -- Josh ~| 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:330919 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: What is the best way to design a grid system?
I have no idea...you'll have to look at the Spry docs to find that out. -- Josh -Original Message- From: Kamru Miah [mailto:k.m...@csl.gov.uk] Sent: Monday, January 25, 2010 7:21 AM To: cf-talk Subject: Re: What is the best way to design a grid system? Many thanks for your suggestions. Since SPRY is part of CF8, does it have any equivalent table-edit plugin to do the same as jEditatble? Regarding the editable table cells, there is a nifty jQuery plugin called jEditable that can help you accomplish that. -- Josh ~| 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:330113 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: What is the best way to design a grid system?
Regarding the editable table cells, there is a nifty jQuery plugin called jEditable that can help you accomplish that. -- Josh -Original Message- From: Kamru Miah [mailto:k.m...@csl.gov.uk] Sent: Friday, January 22, 2010 9:30 AM To: cf-talk Subject: What is the best way to design a grid system? What is the best way to design a grid system to display monthly income/costs of a project (on a flat-profile basis) running up to 6 financial years (FY)? The cell-entries should be editable (phasing) and saved in a database table as well as update the FY totals column. Each FY is likely to have up to 5 rows (income/costs) and 12 columns (months). Please give me some clues? :-) ~| 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:330037 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfsavecontent and whitespace
The white space seems to be caused by carriage returns, so this has helped me: cfsavecontent variable=myvar !--- blah blah --- /cfsavecontent cfoutput#replace(myvar,\r\n,,all)#/cfoutput -- Josh -Original Message- From: Jake Churchill [mailto:reyna...@gmail.com] Sent: Friday, January 22, 2010 1:08 PM To: cf-talk Subject: cfsavecontent and whitespace I'm just wondering if anyone has come up with a solution for the extreme whitespace added by cfsavecontent. Scenario: I have a CFC which builds pieces of content for an email. The content is pieced together via a complex series of loops, and other CFC calls. I've tried every combination of cfsilent, cfsetting enablecfoutputonly=true and cfprocessingdirective suppresswhitespace=true that I can think of and nothing seems to work. The Enable Whitespace Management option in the administrator DOES work, but I don't want to turn that on because of the potential performance hit. Does anyone have any kind of suggestion for avoiding so much whitespace? -Jake ~| 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:330053 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Why i fear ColdFusion is on its last legs
I tend to agree with you Eric. My feeling is that ColdFusion has been profitable with little or no marketing, so what is Adobe's incentive to actively market it? They can plug along with a few developers working on it, cranking out new versions every so often, and as long as it's not losing money that's ok with Adobe. -- Josh -Original Message- From: Eric Nicholas Sweeney [mailto:n...@bigfatdesigns.com] Sent: Thursday, January 21, 2010 3:18 PM To: cf-talk Subject: RE: Why i fear ColdFusion is on its last legs So - the argument would be - I should really push Coldfusion! AS a CF believer I should get more involved! Spreading the word spreads the product! I should start a group and get all my friends to start programming in CF!!! - I'm not buying that. That's Adobe's job. It's THEIR product. I have my own job to do. As a company owner - I need to push MY company. I need to push My services. And I need to stay ahead of the next guy. Adobe doesn't always help with that. I'm not saying Adobe's responsible for whether my company makes or breaks it any more than me to them - heck no - I'm also not saying I don't use CF as a way to differentiate myself from the next guy - I do - But I will offer: making a $300 vs a $1300 server license would be a hell of an olive branch to the community at large. Could be great marketing. Could help CF spread like wildfire. IF done correctly. So - there's my log on the fire for this discussion. Carry on. Complain away and point out the dozen reasons I am wrong. Just go easy on the name calling. - Nick ColdFusion's not dead - It's Frozen! We're gonna break out the anti-virus and thaw this mutha out! - Drunk IT Executive making no sense at all at quarterly board meeting. ~| 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:329995 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 Settings: Large upload failure
I'm sure you probably did, but did you restart ColdFusion after changing the settings? -- Josh -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Tuesday, December 08, 2009 9:20 AM To: cf-talk Subject: CF8 Settings: Large upload failure Simplified version. In CFServer Settings we set: Maximum size of post data 1500 MB Any time we try to upload a file more than 100Mb we get JS thread dump: ROOT CAUSE: coldfusion.filter.RequestThrottleFilter$PostSizeLimitExceededException: Post Size exceeds the maximum limit. Any ideas on why CF is ignoring the settings? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged __ Information from ESET Smart Security, version of virus signature database 4670 (20091208) __ The message was checked by ESET Smart Security. http://www.eset.com ~| 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:328973 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFMap weirdness
I'm playing with CF9 for the first time on my local machine (Windows 7 / IIS) and have CF working fine. I've been trying to make CFMap work, but I'm getting no response to the simplest examples of code. Example: cfmap name=gmap01 centeraddress=275 Grove Street Newton, MA 02466 This is all I have in the page. It doesn't throw an error, it just shows NOTHING. I've thrown CFTry/Catch around it, but it's not throwing any errors. I have the google maps key appropriately defined (removing that DOES throw an error). Nothing in the logs. It seems to parse the page just fine, but displays nothing. Does anyone have a suggestion on where to look to track down the problem? Thanks! Josh ~| 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:328800 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: 'Tis a sad, sad day...jQuery kills FireFox but works great in IE!
You might get a tad bit more speed if you do this in your selectors: $(table.stripetbodytr.oldUsers) Instead of this: $(.oldUsers) This is because jQuery will execute the DOM search more specifically instead of having to traverse the whole DOM for that class. -- Josh -Original Message- From: Eric Cobb [mailto:cft...@ecartech.com] Sent: Friday, November 13, 2009 6:26 AM To: cf-talk Subject: Re: 'Tis a sad, sad day...jQuery kills FireFox but works great in IE! Yeah, after tinkering with it a little more I realized what I was trying to do would be better with classes instead of IDs. I really didn't want to have to deal with a unique ID for all 500 rows. Anyway, here's my jQuery now: $(#userFilter).click(function(){ // If checked if ($(#userFilter).is(:checked)){ //hide all old users $(.oldUsers).css(display,none); } else { //show all old users $(.oldUsers).css(display,table-row); } }); It works correctly in both FF and IE, although in FF there's still a good bit of lag time from when you click the checkbox until it actually hides the rows. I guess it's just the way FF is dealing with so many table rows. -- Thanks, Eric Cobb http://www.cfgears.com Peter Boughton wrote: I have a (large) table that has a list of users with IDs of newUsers and oldUsers. This is wrong! Every ID on the page *must* be unique. Use CLASS for common attributes. ~| 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:328355 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: 'Tis a sad, sad day...jQuery kills FireFox but works great in IE!
Hmmm...ok, maybe I was thinking of the difference between ID and class or something. Sorry about that. -- Josh -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: Friday, November 13, 2009 12:52 PM To: cf-talk Subject: RE: 'Tis a sad, sad day...jQuery kills FireFox but works great in IE! Josh... That's not true. Everything I've read says that the less specific you are, the faster your code will run. In your example, it has to search through a whole bunch of stuff rather than just going and finding items with a class of oldUsers. andy -Original Message- From: Josh Nathanson [mailto:p...@oakcitygraphics.com] Sent: Friday, November 13, 2009 12:20 PM To: cf-talk Subject: RE: 'Tis a sad, sad day...jQuery kills FireFox but works great in IE! You might get a tad bit more speed if you do this in your selectors: $(table.stripetbodytr.oldUsers) Instead of this: $(.oldUsers) This is because jQuery will execute the DOM search more specifically instead of having to traverse the whole DOM for that class. -- Josh -Original Message- From: Eric Cobb [mailto:cft...@ecartech.com] Sent: Friday, November 13, 2009 6:26 AM To: cf-talk Subject: Re: 'Tis a sad, sad day...jQuery kills FireFox but works great in IE! Yeah, after tinkering with it a little more I realized what I was trying to do would be better with classes instead of IDs. I really didn't want to have to deal with a unique ID for all 500 rows. Anyway, here's my jQuery now: $(#userFilter).click(function(){ // If checked if ($(#userFilter).is(:checked)){ //hide all old users $(.oldUsers).css(display,none); } else { //show all old users $(.oldUsers).css(display,table-row); } }); It works correctly in both FF and IE, although in FF there's still a good bit of lag time from when you click the checkbox until it actually hides the rows. I guess it's just the way FF is dealing with so many table rows. -- Thanks, Eric Cobb http://www.cfgears.com Peter Boughton wrote: I have a (large) table that has a list of users with IDs of newUsers and oldUsers. This is wrong! Every ID on the page *must* be unique. Use CLASS for common attributes. ~| 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:328381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: javascript / coldfusion ajax communication
Richard, here's a helpful site with comparisons of the various js options to encode: http://xkr.us/articles/javascript/encode-compare/ -- Josh -Original Message- From: Steve Milburn [mailto:scmilb...@gmail.com] Sent: Tuesday, September 29, 2009 9:41 AM To: cf-talk Subject: Re: javascript / coldfusion ajax communication Richard In your js, use encodeURIComponent on any user entered data to properly encode the string. Have a look at the CF function URLDecode on the backend if CF doesn't properly decode your string automatically. Steve On Mon, Sep 28, 2009 at 9:31 AM, Richard White rich...@j7is.co.uk wrote: hi our client side scripting is in javascript and server side code is coldfusion. our javascript sends string data to coldfusion via url. what is the best way to encode/escape the javascript strings and decode/unescape them in coldfusion thanks richard ~| 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:326745 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cf_barcode height not working in Firefox:
I used this tag, and I think (this was awhile back) I modified it so instead of using spans, it used table cells (td's). Once I did that I was able to control the width and height across browsers. -- Josh -Original Message- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Monday, September 28, 2009 6:42 AM To: cf-talk Subject: Re: cf_barcode height not working in Firefox: we cannot specify a fixed width as it is a barcode feature that has varying widths between all the bars. the full code is as follows: ~| 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:326698 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: SOT - Online Payment Providers who offer recurring payment options
I currently use the Authorize.net recurring billing API via ColdFusion. I think there's a CFC on RIAForge that you can use, though it's easy enough to write your own if you like. It works fine, though Authorize.net is lacking some features that would be helpful: -- when you cancel a recurring billing subscription, it doesn't give you a receipt to send to your client. -- when a payment fails (credit card expired or whatever), it sends you an email, but doesn't post to an url that you could set up to do some processing (suspend your client's account or whatever). -- they haven't updated their admin area in years, it's hard to navigate. -- Josh -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Friday, September 18, 2009 2:24 PM To: cf-talk Subject: SOT - Online Payment Providers who offer recurring payment options Hey All, A little off topic, but I usually get good advice here... I need to pick an online payment vendor for a project that will having a recurring payment model (month subscriptions). I've used PayFlowPro in the past, but are there any other good options? Last time I checked Google Checkout they still didn't offer recurring payments. Anyhow, just looking for options and advice =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| 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:326443 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 to prevent IE from caching content added via ajax?
Did you set cache: false in your $.ajax params? -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Thursday, September 17, 2009 1:42 PM To: cf-talk Subject: How to prevent IE from caching content added via ajax? Poor title, but I couldn't get it all in there. - got a page which loads a .cfm of content into a div via a jQuery .load function - the content for the .loaded .cfm page is generated in a cfc method, and I use cfsavecontent and save the generated content out to the aforementioned .cfm file - when the page I'm loading in the browser loads the content via .load from the .cfm page, IE doesn't refresh the .loaded content.FF does - If I close IE and open the page again, the content is refreshed.even refreshing the page using F5 doesn't help - I've tried the mega tags meta http-equiv='cache-control' content='no-cache' and meta http-equiv-'expires' content='-1' as well as the header cfheader name='expires' value='#getHttpTimeString(dateAdd('s', 1, now()))#' - None of those headers or meta tags are working - what else could I try? Thanks for any suggestions! Rick --- Those who hammer their guns into plows will plow for those who do not. - Thomas Jefferson ~| 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:326405 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 to prevent IE from caching content added via ajax?
Oh...if you are using the load function, then you can just do this somewhere before it: $.ajaxSetup({ cache: false }); This will make it so any and all subsequent ajax requests (including load) are not cached. -- Josh -Original Message- From: Josh Nathanson [mailto:p...@oakcitygraphics.com] Sent: Thursday, September 17, 2009 1:49 PM To: cf-talk Subject: RE: How to prevent IE from caching content added via ajax? Did you set cache: false in your $.ajax params? -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Thursday, September 17, 2009 1:42 PM To: cf-talk Subject: How to prevent IE from caching content added via ajax? Poor title, but I couldn't get it all in there. - got a page which loads a .cfm of content into a div via a jQuery .load function - the content for the .loaded .cfm page is generated in a cfc method, and I use cfsavecontent and save the generated content out to the aforementioned .cfm file - when the page I'm loading in the browser loads the content via .load from the .cfm page, IE doesn't refresh the .loaded content.FF does - If I close IE and open the page again, the content is refreshed.even refreshing the page using F5 doesn't help - I've tried the mega tags meta http-equiv='cache-control' content='no-cache' and meta http-equiv-'expires' content='-1' as well as the header cfheader name='expires' value='#getHttpTimeString(dateAdd('s', 1, now()))#' - None of those headers or meta tags are working - what else could I try? Thanks for any suggestions! Rick --- Those who hammer their guns into plows will plow for those who do not. - Thomas Jefferson ~| 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:326409 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: What is the most like cause lf Java Heap Space error?
I seem to remember something about CFIMAGE hogging a lot of RAM...anyone else have more info? -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Tuesday, September 15, 2009 11:35 AM To: cf-talk Subject: RE: What is the most like cause lf Java Heap Space error? Thanks, Claude... Rick -Original Message- From: Claude Schneegans [mailto:schneeg...@internetique.com] Sent: Tuesday, September 15, 2009 2:21 PM To: cf-talk Subject: Re: What is the most like cause lf Java Heap Space error? I can see mostly two reasons: 1. an infinite loop, this would be in your code, 2.. some memroy leak, this would be some in other's code. ~| 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:326330 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 to handle CF variables in JS (jQuery) external files...
I guess the question is, why do you need the datasource name in your javascript code? Generally, only the server should need to know about that. If the DSN name exists in the application scope already, you should be able to reference it in your CFML code on the server, and thus you wouldn't need to pass it as part of your ajax request. -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Wednesday, September 09, 2009 11:58 AM To: cf-talk Subject: RE: How to handle CF variables in JS (jQuery) external files... Interesting solution, Tony. I realized when I tried James' approach of placing my js in external .cfm files that the js didn't execute as expected. When I placed the js code directly in the calling page again, it acted normally. It appears that the .cfm extension caused some change in interaction between the cf and js code and the results. So, I tried putting the js code into external .js files and hard-coding the datasource name into the js values and it worked properly. However, putting the application.dsn variable into a .cfm file inside the js code did expose the datasource name in the source code. So, I tried your approach and put this after the link to the main jQuery file: cfoutput script type=text/javascript $.dsn = '#application.dsn#'; /script /cfoutput Then for the external js file, I used: values = { dsn: $.dsn } that worked fine, but when I viewed the source code for calling page, I could still see: script type=text/javascript $.dsn = myDatasourceName; /script Is there a way to hide the datasource name in the source code? As I look through the js code in my calling page, the datasource name is still visible in other code, as well. I don't see a way to prevent that from happening. What am I missing here? Thanks, Rick -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: Wednesday, September 09, 2009 1:44 PM To: cf-talk Subject: Re: How to handle CF variables in JS (jQuery) external files... Simply declare your JS vars at the top of the page and reference them in your js file. cfoutput script $.datasource = '#application.datasource#'; $.root = '#application.root#'; $.user = '#session.user#'; /script /cfoutput Then load your js files underneath. This way, your browser can cache your js files as normal and you are not loading unnecessary external files on each page request. ~| 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:326156 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 to handle CF variables in JS (jQuery) external files...
Using #application.dsn# in your component is a heckuva lot better than passing it through the ajax call. To avoid using application scope in your component, you can pass it in when you instantiate the component, as below: In the component: cffunction name=init cfargument name=dsn cfset variables.dsn = arguments.dsn / !--- set a reference to the datasource name --- /cffunction cffunction name=getStuff cfquery name=myQuery datasource=#variables.dsn# !--- reference the variables scope instead of application --- !--- stuff --- /cfquery /cffunction Then when you instantiate: cfset application.myComponent=createObject(component,path.to.component).init( myDatasourceName) / -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Wednesday, September 09, 2009 12:09 PM To: cf-talk Subject: RE: How to handle CF variables in JS (jQuery) external files... Well...I was trying to following what I thought was a best practice for components: keep all variables out of the method and pass in the data from the calling page. In this case, the dsn has to be passed in via the ajax call, along with other values. I guess I could hard-code the dsn value into the method, but I was trying to avoid that, too. ~| 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:326163 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: onSessionEnd clearing session scoped variables
I would think that those references would be garbage collected at the next GC run, so no need to do that. -- Josh -Original Message- From: Che Vilnonis [mailto:ch...@asitv.com] Sent: Tuesday, September 08, 2009 12:15 PM To: cf-talk Subject: onSessionEnd clearing session scoped variables What is the best/proper way (using CF8) to clear all session variables in the onSessionEnd method of Application.cfc? Should I clear the variables individually? Should I clear the entire session scope? Or, since I have a default session timeout, do I need any of this code at all? See below. cffunction name=onSessionEnd returnType=void output=false cfargument name=sessionScope type=struct required=true cfargument name=appScope type=struct required=false cfset structClear(arguments.sessionScope) /cffunction cffunction name=onSessionEnd returnType=void output=false cfargument name=sessionScope type=struct required=true cfargument name=appScope type=struct required=false cfset structClear(arguments.sessionScope.cart) cfset structClear(arguments.sessionScope.cartcount) cfset structClear(arguments.sessionScope.recentlyviewed) /cffunction Thanks, Che ~| 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:326104 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: jQuery question
Hey Rick, Like any other form post, you can't pass complex arguments to the server. What you could do is pass a JSON string and then deserialize it in the CFC. -- Josh -Original Message- From: Rick Root [mailto:rick.r...@webworksllc.com] Sent: Tuesday, August 11, 2009 5:09 PM To: cf-talk Subject: jQuery question I have a CFC hat accepts a struct as its argument. The struct can contain 0 or more items, but the struct itself is required. I want to use jQuery to call this method. But I can't figure out how. what I'm trying to do is this: I'm trying to do this as a jquery post... var command = {name:''}; var url='/cfcs/pools.cfc?method=getPoolListreturnFormat=json'; $.post(url, [command:command], rh_getPoolList, json); it is successfully calling the CFC - I have a cfmail in it that emails me a dump of the arguments. And arguments.command is a string that looks like this: [object object] Instead of a struct. Any suggestions? -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| 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:325359 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 to prevent JSON data Yes and No being returned to calling page as true and false...
Rick - you could do something like: out.push('div' + row[5] ? 'Yes' : 'No' + '/div'); Or, you could massage the data in a separate function before pushing it into the DOM. -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Friday, August 07, 2009 12:00 PM To: cf-talk Subject: RE: How to prevent JSON data Yes and No being returned to calling page as true and false... Charlie and Brad...you've both come to the same solution with the YesNoFormat() function, however, I don't see where I can implement that. (I'm just probably brain-fried from dealing with jquery, json, ajax, and CF..and to think I *just* got back from vacation! No good!) Anyway, I'm outputting the data in the DOM via javascript, as in: out.push('div' + row[5] + '/div'); so I don't have a chance to use the YesNoFormat function there. Do I need a client-side, js formatting solution in this case? (I asked about this on the jQuery list, thinking that it would need to be a client-side formatting solution, but it was suggested I look for a server-side solutionaround we go...) Rick -Original Message- From: b...@bradwood.com [mailto:b...@bradwood.com] Sent: Friday, August 07, 2009 2:45 PM To: cf-talk Subject: RE: How to prevent JSON data Yes and No being returned to calling page as true and false... Yes, the JSON formatting tries to guess the data type for you. This can be especially frustrating if you have numbers with significant leading zeros like zip codes. Sometimes you can add spaces to the data to trick CF. If I were you, I wouldn't worry about the true/false conversion and just use the yesNoFormat() function built into CF to turn them back into the words yes and no. ~Brad Original Message Subject: How to prevent JSON data Yes and No being returned to calling page as true and false... From: Rick Faircloth r...@whitestonemedia.com Date: Fri, August 07, 2009 1:39 pm To: cf-talk cf-talk@houseoffusion.com Long subject line. I've got char datatypes in a MySQL 5 db with data of Yes and No. ~| 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:325289 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: (ot) Twitter down
CNN says Twitter is being hit with a DOS attack. When I try to login to Facebook I get a blank white screen. -- Josh -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, August 06, 2009 9:58 AM To: cf-talk Subject: Re: (ot) Twitter down That was pretty funny. One sec while I tweet about that. :) On Thu, Aug 6, 2009 at 9:55 AM, Mark Krugermkru...@cfwebtools.com wrote: H I just tried to tweet on one of my blog posts and noticed that twitter is down and I've heard facebook is having problems as well. In a completely unrelated story palid teenagers are emerging from basement hideaways and over-garage bedrooms by the thousands, blinking and squinting at the sun. Meanwhile the Jonas brothers are frantically brainstorming other ways to tell the world what they had for breakfast. Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com http://www.cfwebtools.com/ www.coldfusionmuse.com http://www.coldfusionmuse.com/ http://www.necfug.com/ www.necfug.com ~| 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:325248 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: HoF site down?
Down for me...in Bay Area, CA -- Josh -Original Message- From: Jordan Michaels [mailto:jor...@viviotech.net] Sent: Monday, July 27, 2009 5:01 PM To: cf-talk Subject: HoF site down? I haven't been able to get to the HoF site. Is it down for anyone else or am I just losing my mind? Thanks. ;) -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider ~| 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:325019 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ecommerce emergency
I feel your pain. I had to give up freelancing because there were just too many I want everything for free people out there trying to get some dumb business started. My brother's wife wants to start a 'Hot or Not' site but for cats instead of people...you can probably set that up in a couple of hours, right? They can pay you once the site starts to make money. Pt. -- Josh -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, July 23, 2009 8:27 AM To: cf-talk Subject: Re: ecommerce emergency hehehe.. To move, I need money.. To make money, I need to move. :) On Thu, Jul 23, 2009 at 8:12 AM, Mark Krugermkru...@cfwebtools.com wrote: You are definitley working with the wrong clients... And it sounds like you need to move as well :) Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, July 23, 2009 8:30 AM To: cf-talk Subject: Re: ecommerce emergency I'll keep my eye out for it. Thanks. :) The client I'm doing this for is only willing to part with $450. That's total. For my setup time, configuration, etc. I'm not sure how it is around the country, but where I am (NW USA), it's dog eat dog with PHP developers who are charging $9/hr. for websites. I managed to convince the client that I'm able to code allot faster with ColdFusion and that PHP is open source, therefore not as secure (I used the Google 'PHPbb virus' response). So I have this guy set to dump his hosting prepaid for 2 years to get some hosting on hostingatoz (which I'm hesitant to do since they still have yet to fix my cffile issue) or pay for some cf hosting someplace else, but that's another issue. I am glad you guys could tell your clients You need this and this and this and you guys get it. Us contractors in this area tend to tell our clients this and they go, Well, I'll go with someone else then who does PHP and take my chances because I don't have the money. I'd enjoy getting a $400 product that I can customize for clients. But if I were to ask a client out here for that up front (instead of at the end), then I wouldn't have the client. It's tough enough to get the client to pay 50% down nowadays. BTW, if anyone DOES have a client they are too busy to handle who is willing to drop $400 at the start and needs an ecommerce solution, I'll be glad to take them off your hands. :) Thank you for the advice, but I still have to go with CFShopKart at the moment. On Thu, Jul 23, 2009 at 6:05 AM, Gerald Guidogerald.gu...@gmail.com wrote: Phillip, you might need to double check but last I looked cfshopkart it was storing credit card details in its database (an MS Access database). Last time I looked at it, a couple of weeks ago, it had queries that did not use use cfqueryparam. Double plus ungood. You can always use that tool (the name escapes me) to cfqueryparam-tize the queries. I have used it before and it worked well enough, It did not add the cfsqltype attribute. I had to do that by hand, but it did 90% of the grunt work. My advice, free and worth every penny, is to get something battle tested. I have 5-6 carts under my belt and they can be rather involved and hence there is a lot that can, and if that Murphy fellow has anything say about it, will go wrong. G! On Wed, Jul 22, 2009 at 10:53 PM, Kevan Stannard ke...@stannard.net.auwrote: Phillip, you might need to double check but last I looked cfshopkart it was storing credit card details in its database (an MS Access database). And if you're on shared hosting this this db is likely to be web accessible. If this is still the case then avoid this cart. Mike, cfshopkart was one of the authors first cf applications so is not a good example of a well designed or coded app. -- Gerald Guido http://www.myinternetisbroken.com http://www.cfsimple.org/ To invent, you need a good imagination and a pile of junk. -- Thomas A. Edison ~| 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:324870 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ecommerce emergency
Believe it or not it's a true story, I couldn't make that up. They did get someone else to set up the site and it's here: http://www.kittykungfu.com/ Not sure if they're profitable yet. They might make $3.00/month on google ads. PS not responsible for keyboard damage! -- Josh -Original Message- From: Gerald Guido [mailto:gerald.gu...@gmail.com] Sent: Thursday, July 23, 2009 10:56 AM To: cf-talk Subject: Re: ecommerce emergency My brother's wife wants to start a 'Hot or Not' site but for cats instead of people ROLFMAO. I need a new key board now... G! On Thu, Jul 23, 2009 at 1:16 PM, Josh Nathanson p...@oakcitygraphics.comwrote: I feel your pain. I had to give up freelancing because there were just too many I want everything for free people out there trying to get some dumb business started. My brother's wife wants to start a 'Hot or Not' site but for cats instead of people...you can probably set that up in a couple of hours, right? They can pay you once the site starts to make money. Pt. -- Josh ~| 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:324880 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: monitoring users / access points
I have had pretty good success doing what Dave suggests. People really don't like being limited to using the application one at a time so they are incentivized to purchase some sort of multi-user account. -- Josh -Original Message- From: Dave Sueltenfuss [mailto:dsueltenf...@gmail.com] Sent: Wednesday, July 15, 2009 6:54 AM To: cf-talk Subject: Re: monitoring users / access points Richard, How i have done this in the past is track access via a database table. Record their CFID, ip, username, etc when they login. Then, when they second person logs in with the same username, you force the original user to log out. Dave On Wed, Jul 15, 2009 at 9:43 AM, Richard White rich...@j7is.co.uk wrote: Hi we are wondering how you guys deal with monitoring users for a web-based application when the pricing model is based around a per user subscription is there techniques of telling whether someone has passed their username and password to one of their colleagues to use. could the pricing model be based around access points instead of users (i.e. we ask them to register their computers mac addresses instead of usernames). this could also provide enhanced security for our clients as it is not just a matter of knowing someones password but they will have to access it from specified computers surely we are not the first to come up against this issue, and would appreciate your thoughts. richard ~| 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:324531 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Http webservice thinks it's https
Hey all, Having a weird issue with a webservice call. After a server restart yesterday, we started getting the error: Unable to read WSDL from URL: http://blahblahblah.com/cfc/am/service/remoteTransactionAPIService.cfc?wsdl. Error: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated. As you can see, the call to the webservice is going over http, not https. Yet, we are getting what appears to be a security cert error, as if the request is being pushed to SSL somehow. As both the calling and receiving servers are in our internal network, behind a firewall, we have no need to use SSL and would rather figure this out than get a security certificate. Googling turned up squadoosh. Any ideas? -- Josh ~| 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:324349 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: autosuggest - other than cf8 solution
Sounds like maybe your JSON is not valid. You can check it at http://www.jsonlint.com. If it checks out as valid, then start to look elsewhere. -- Josh -Original Message- From: Don L [mailto:do...@yahoo.com] Sent: Thursday, June 25, 2009 10:29 AM To: cf-talk Subject: Re: autosuggest - other than cf8 solution http://www.lalabird.com/?fa=JSMX.downloads scroll down the page to you see JSMXsuggest Example I really like JSMX very easy to use Andrew. the cfc has been tested, working and returns expected data, http://127.0.0.1:8600/test/JSMXsuggest.cfc?method=getProjectsvalue=g returns expected data the caller has execution problem: on autosuggest it erred Parser error: the returned value could not be evaluated (both IE7 and FF3.010) are they been hacked on this machine? thanks. ~| 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:323941 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: PHP to CF pseudo code...
Ha ha spot on! -- Josh -Original Message- From: David McGuigan [mailto:davidmcgui...@gmail.com] Sent: Thursday, June 25, 2009 1:26 PM To: cf-talk Subject: Re: PHP to CF pseudo code... Sure. Highlight about 8 out of every 10 lines of the code with your mouse, then hit the delete key. From what's left, change the random, cryptic-looking function names to something more semantically valuable. That should be about right. Enjoy. On Thu, Jun 25, 2009 at 2:22 PM, Che Vilnonis ch...@asitv.com wrote: Oh, I know there is no tool. But the code is pretty simple and I thought I might find a rough translation... Anyone want to to take a shot? -Original Message- From: Paul Alkema [mailto:paulalkemadesi...@gmail.com] Sent: Thursday, June 25, 2009 4:18 PM To: cf-talk Subject: RE: PHP to CF pseudo code... Hey Che, You're not going to find any sort of php to cf tool if that's what your looking for. I'm afraid if there was such a tool that it would highly inaccurate because there are so many different variations when working with both languages. There are some php to cf guides out their. http://sweatte.wordpress.com/syntax/ I found this page helpful sometimes, it has multiple languages but sometimes it's hard because sometimes there aren't direct language translations. Paul Alkema AlkemaDesigns.com -Original Message- From: Che Vilnonis [mailto:ch...@asitv.com] Sent: Thursday, June 25, 2009 3:59 PM To: cf-talk Subject: PHP to CF pseudo code... Anyone know where/how to get some PHP code translated into CF pseudo code or something a CF programmer would understand? Is there such a beast? I can post the example... its about 50 lines of code. ~Che ~| 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:323952 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFC and jQuery
Well eval is essentially a string-to-json conversion. Are you sure your json is valid? Try going here and pasting in your string: http://www.jsonlint.com/ Also, in your jQuery ajax call, it has to be dataType with the capital T - javascript is case sensitive. Josh, I tried datatype: 'json' and get back the same string. I did look at it on Firebug and got back a black URL instread of the green one like you said. I have tried converting the string using the eval method to no avail. Do you know if there is a string to JSON conversation method out there? Thanks, James ~| 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:323646 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: pagination and large recordsets (mysql)
There is a pagination cfc at cflib.org. As for that link...oh my gosh...sql injection anyone? -- Josh -Original Message- From: Mike Little [mailto:m...@nzsolutions.co.nz] Sent: Thursday, June 18, 2009 1:20 PM To: cf-talk Subject: pagination and large recordsets (mysql) hey guys, came across the following blog post... http://www.webveteran.com/blog/index.php/web-coding/coldfusion/mysql-and-col dfusion-pagination-version-2/ it is really great and works very fast indeed on a large amount of data. however i was wondering if anyone has seen a similar concept in cfc format eg. not having to put the WHERE clause in the url. mike ~| 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:323665 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFC and jQuery
1) Add dataType:'json' as an attribute of your ajax call, or use $.getJSON 2) use Firebug / console.log to examine the response, make sure DATA is a valid property of the response JSON -- Josh -Original Message- From: James White [mailto:jwhite1...@gmail.com] Sent: Wednesday, June 17, 2009 1:41 PM To: cf-talk Subject: CFC and jQuery I am trying to call a query from a CFC using jQuery with the following code: $(document).ready( function () { $.ajax({ type: GET, url: SpellChecker.cfc?method=getTextMemoFieldsreturnformat=json queryformat=column, data: datastring, success: function(response) { var resp = jQuery.trim(response); alert(resp); } }); }); When I look at the data inside an alert it looks exactly like it should. However, when I try to get to the values inside of it (e.g. resp.DATA) it is always undefined. Do I need to perform an extra step? I appreciate any advice I can get on this. Thanks, JW ~| 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:323610 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFC and jQuery
It looks like you're getting a string back and it never becomes a javascript object. If you put dataType:'json' in your ajax params, I believe it will automatically eval the response for you, which turns the json string response into a javascript object. You should see this in Firebug as a clickable green link; when you click it, it should show you the property values. If it is not clickable, then you have a string rather than an object. This is independent of passing returnformat=json to your cfc. That creates a json string which gets passed back to the client. However you must do something in javascript to turn the string into an object; either eval'ing it manually, or use dataType: 'json' which will do it for you. -- Josh -Original Message- From: James White [mailto:jwhite1...@gmail.com] Sent: Wednesday, June 17, 2009 3:51 PM To: cf-talk Subject: Re: CFC and jQuery 1) Add dataType:'json' as an attribute of your ajax call, or use $.getJSON 2) use Firebug / console.log to examine the response, make sure DATA is a valid property of the response JSON -- Josh I am trying to call a query from a CFC using jQuery with the following code: $(document).ready( function () { $.ajax({ type: GET, url: SpellChecker.cfc?method=getTextMemoFieldsreturnformat=json queryformat=column, data: datastring, success: function(response) { var resp = jQuery.trim(response); alert(resp); } }); }); When I look at the data inside an alert it looks exactly like it should. However, when I try to get to the values inside of it (e.g. resp.DATA) it is always undefined. Do I need to perform an extra step? I appreciate any advice I can get on this. Thanks, JW Josh, 1. I already am getting the results back in JSON format using the returnformat=json parameter. I tried $.getJSON without much success (If you know of a good CFC example using $.getJSON, I'd be happy to review it). I cannot even get results back using it, where as with the $.ajax I get results, I just can't seem to do much with them but print the whole json object(i.e. document.write) to a page or display the results in an alert box. 2. I am Firebug and I did verify that DATA is a valid parameter. Basically I am returning a db table and putting in JSON format. The code I have returns the following: {ROWCOUNT:20,COLUMNS:[SAVEDVALUE],DATA:{SAVEDVALUE:[blah,blah,bla h]}} But when I try and access for instance resp.ROWCOUNT, it's undefined. So basically, I want to know how I can actually get to the values I can only seem to read. Thanks, James ~| 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:323618 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Time from client to multiple servers.
Hmmm...I don't quite get it...by the time you hit a server to do this checking, they have already hit a server with the request, so the choice has been made...or are you saying they can choose a server for all subsequent requests? Maybe a little more elaboration of what you're going for is in order. If you are looking to determine network latency for a client, something ajax-y would probably fit the bill. Do the same thing, get times before and after the ajax call and report them in javascript, and this will take the client's own network latency into account. -- Josh -Original Message- From: John Saunders [mailto:saunder...@gmail.com] Sent: Friday, May 29, 2009 5:28 AM To: cf-talk Subject: Time from client to multiple servers. Situation is this. Have an architecture with multiple coldfusion servers geographically separated. Trying to find a way for a user to determine which server would be the best for them to use based on speed. Was thinking of something along the lines of this. Although the speed here is based on the time it is processed on the server rather than the time it actually hits the client. Sure this is something dumb, it just isn't clicking right now. Any help would be appreciated. cfset sites=Server1, Server2, Server3 cfloop list=#sites# delimeters=, index=i cfset st = getTickCount() cfhttp url=http://#i#/speedcheck.html; cfset et = getTickCount() cfset tottime = et - st Time to site (#i#) is : #tottime# ms /cfloop ~| 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:322979 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Calendar Application to Consolidate Many Nonprofit Organizations
Chris, I built an SaaS app called Calabunga that might be able to do what you're looking for. There's a 30-day free trial that's full featured so you can test it out. Hit me up offline if you have any questions. http://www.calabunga.com -- Josh -Original Message- From: Chris Montgomery [mailto:chrisnc...@gmail.com] Sent: Thursday, May 21, 2009 2:58 PM To: cf-talk Subject: Re: Calendar Application to Consolidate Many Nonprofit Organizations Hi Alan, Alan Rother said the following on 5/21/2009 4:44 PM: Have you considered (Since your doing it for free) using Google Calendar? Yes, as I mentioned in my original post, but my experience with this, after some experimentation, is that it can't handle importing more than about a half dozen calendars into one master calendar. I'll go back and look at it again, though, since it's been almost a year since I last played with it. Maybe they've bumped up the number of calendars that can be merged into one. Other than that, you could look at the great CF based calendar Ben Nadel built Thanks for the lead, but this app (and others that I've looked at so far) don't seem to have the ability to allow remote sites to display their data or manage their calendar data except by logging into the one site where it's running. I was just fishing to see if any such calendar app exists that would allow this capability. I've not messed with web services yet, so this might be my first leap into the frying pan. :) Cheers. -- Best regards, Chris Montgomery ~| 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:322695 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Adobe Livedocs throwing lock error???
Wouldn't be surprised if that was some ancient legacy code. Probably a lock is not even needed. -- Josh -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Friday, May 15, 2009 12:44 PM To: cf-talk Subject: Re: Adobe Livedocs throwing lock error??? I keep getting this A timeout occurred while attempting to lock the application scope. when I go here http://livedocs.adobe.com/coldfusion/8/Tags_d-e_03.html I got that a few days ago, actually, and got a screen cap. No error handling, even! 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! ~| 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:322577 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Load Test Apps
I found openSTA pretty easy to get up and running. http://www.opensta.org/ -- Josh -Original Message- From: Justin Scott [mailto:jscott-li...@gravityfree.com] Sent: Tuesday, May 12, 2009 12:26 PM To: cf-talk Subject: Load Test Apps Any recommendations on web site load testing apps? I'm considering JMeter and the Microsoft Web Application Stress Tool. Anything else I should be looking at? What's easiest to configure, run, and gives decent reporting? -Justin ~| 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:322443 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Server just.... stops?
Are you running the CF8 server monitoring in production? At my old place of business, we had random crashes that left no trace of evidence as to their cause. We turned off server monitoring and they stopped happening. Not 100% sure that was the cause, but it did seem to stop the random crashes. -- Josh -Original Message- From: Justin Scott [mailto:jscott-li...@gravityfree.com] Sent: Tuesday, May 05, 2009 4:58 PM To: cf-talk Subject: RE: Server just stops? So nothing in the log about unresponsive threads where it is hitting the limit and just restarting itself? Right, essentially the server just stops responding to requests and our monitoring system waits a couple of minutes and then restarts the coldfusion application service. It comes back up fine almost all the time, but we'd like to nail down the cause of the crash if possible. I'm just running out of places to look. -Justin ~| 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:322214 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: billing
Man...you're in a bit of a tough situation...I've been there myself. One thing you could do to reduce the freakout factor is offer to let them pay the bill in installments, i.e. half or a third at a time. -- Josh -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Monday, May 04, 2009 10:54 AM To: cf-talk Subject: billing Does anyone give price breaks for quantity of hours in a project? Usually I quote jobs, but this latest one they just said go do it and we have racked up 400+ hours and I think they are going to freak out when they see the bill. We have worked with the company many times in the past so I feel I have to keep my pricing similar to what we have billed before. ~| 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:322153 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Is it not possible to set session variables in a cfc method?
Rick - it could be that the data is caching in the browser so you're not seeing the new values...did you set cache:false in your ajax request? -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Wednesday, April 29, 2009 1:14 PM To: cf-talk Subject: Is it not possible to set session variables in a cfc method? I'm trying to create a preview setup via cf, jquery, and ajax for a form. Before I get too deep into all this code, let me just ask this: Can I set session variables in the cfc method to the values of the form variables and use those back on the calling page? I'm doing it this way to prevent having to write the preview values to the database. I can cfdump the session and see that the session variables are getting set to the proper values in the method, but when they are sent back to the calling page (via a cfsavecontent method to handle an image involved) and jquery displays them, the values are not the current session values that were set back in the method. Anyone worked with this method? (I know Ben Nadel coded it and I adapted it, but I can't figure out why this isn't working.) Thoughts? Suggestions? Thanks, Rick -- - It has been my experience that most bad government is the result of too much government. - Thomas Jefferson ~| 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:322068 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Using Ajax to populate checkmarks?
Yeah, that's not too difficult with something like jQuery. Basically you'd do a $.getJSON call to your fuseaction, return your data, then run a function to check the checkboxes based on the data you returned. That function would be dependent on how you returned the data and what your markup is like for the checkboxes. The first thing to do is make sure you're getting the JSON data back that you expect, by using Firebug or some other debugging method. Once you have that working, you can write the function that updates the checkboxes. -- Josh -Original Message- From: Dan LeGate [mailto:d...@legeek.com] Sent: Friday, April 17, 2009 11:07 AM To: cf-talk Subject: Using Ajax to populate checkmarks? Hi all, We have an application we're building that will allow users to pick a template user to pre-populate some checkboxes based on that user's privileges, but not on initial load of the form. Initially ALL checkboxes will be unchecked when the page loads, however, based on this lookup, it will check certain boxes without having to reload the form. User's will be selecting a template from a select menu, and that would trigger the lookup. Has anyone done anything like that, where, based on a database lookup, you are able to check certain checkboxes on the page AFTER THE PAGE HAS LOADED? (i.e. this is an Ajax lookup) What did you use? Or what *would* you recommend we use. Would JQuery lend itself nicely to this? We're open to anything. Have any example code? We'd also be calling it from within a Fusebox 5.5 (xml approach) app, so any hints/suggestions there would be greatly appreciated. Also, we are on ColdFusion 7, so can't use the new CFAJAX stuff. Any help is appreciated. Thanks! Dan ~| 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:321771 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Multiple Record Queries and CFCs
Well you've run into the big problem with using ColdFusion and objects. The object instantiation speed in ColdFusion is unacceptably slow, when you get up into a large number of objects. The best solution to this problem that I've found is the IBO (iterating business object). Essentially, rather than instantiating a large number of objects, you create a single object which has a struct of arrays to contain the query data. It takes a while to wrap your head around it, but it's well worth the effort. For more information do a search for Peter Bell ColdFusion IBO. He's the one that came up with the idea when he ran into the same problem. -- Josh -Original Message- From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] Sent: Wednesday, March 25, 2009 12:56 PM To: cf-talk Subject: Multiple Record Queries and CFCs I have been trying to write my applications using the 3 tiered method of development, presentation layer, business logic layer and data access layer. I am having trouble coming up with an efficient method of displaying information returned in a query that has multiple records. Correct me if I'm wrong, but shouldn't all data be placed into an object based on a component so that the business logic can massage the data and return valid inforamtion based on business rules. If I am correct that that means that I should create an object for every record of the query before I display the data. Doing this slows down my web pages by 100-200% going from fractions of a second to around 20 seconds for a query that returns 100 records. All of the examples that I have come across on the web run the query in the data application layer and then in the presentation layer, loop over the query and output the data straight from the query (i.e. #qEmployees.firstName#). The problem I have with outputting the data straight from the query is that I will have to have business logic in 2 places. In the business logic component and the data access component. How are you (anyone who would like to reply) handling this scenario and keeping the integrity of the business logic? ~| 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:320964 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Mysterious MySQL DateTime Problem with extra .0
What do you mean by impossible to work with the data? Output it? Use CF functions on it? What are you doing with it exactly, once you get it from the database? -- Josh -Original Message- From: Martin Orth [mailto:m.o...@karneval.com] Sent: Tuesday, March 24, 2009 2:21 PM To: cf-talk Subject: Mysterious MySQL DateTime Problem with extra .0 Hello, I have a mysterious problem with getting data from mysql datetime columns. When I dump my query object each datetime value has the ending .0 Normaly a mysql datetime value would be 2009-03-24 22:30:02 but I will get 2009-03-24 22:30:02.0. So it is not possible to work with the data without removing the .0 at the end. When browse the table data with the mysql query browser or via ms access (odbc system dsn) everything looks fine. I use CF 8 on Windows XP with internal webserver, MySQL 4.1.22 and the new mysql 5.1 jdbc connector as driver for the datasource. The mentioned bug at http://bugs.mysql.com/bug.php?id=12520 seems to be old but until now I found no explanation or solution. Any solutions out there? Thanks Martin -- Martin Orth und Dagmar Pilatzki GbR Schau ins Land 7 51429 Bergisch Gladbach Tel. 02202 862512 ~| 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:320874 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Ok...not getting it...how can I loop over a session struct? Or should I even try?
It sounds like you might want to use an array for this rather than a struct. A struct is better if you are dealing with different properties of a single thing. What you have is multiple instances of the same thing, i.e. photo names. If you do want to use a structure, you can use the collection and item attributes of the cfloop tag: cfloop collection=#session.values.client_photos_200# item=photoname !--- output stuff --- /cfloop -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Wednesday, March 11, 2009 4:11 PM To: cf-talk Subject: Ok...not getting it...how can I loop over a session struct? Or should I even try? Am I trying to do the impossible? Let's say I want to have this: cfset session.values.client_photos_200 = structNew() and the data I have is: cfset session.values.client_photos_200 = structAppend(session.values.client_photos_200, red.jpg) / cfset session.values.client_photos_200 = structAppend(session.values.client_photos_200, blue.jpg) / Now I've got two pieces of a data in my struct. How can I loop over this struct and output the data? Or should I take a different approach to storing data and looping over it? The idea is to form a structure of some sort to handle an indefinite number of file form fields and output that data for display and for insertion into a db. Thanks for any insight... 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:320415 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF Structures.. brain fried
Probably you can just assign the query to a session variable: cfset session.myQuery = myQuery / Then output the query: cfoutput query=session.myQuery !--- do stuff --- /cfoutput You don't need to change the query itself into structures. -- Josh -Original Message- From: Scott Stewart [mailto:sstwebwo...@bellsouth.net] Sent: Monday, March 09, 2009 11:33 AM To: cf-talk Subject: CF Structures.. brain fried I've got a query that returns two fields for each record (id, name). There can be several records returned Because of the way that the site is set up I need to dump the results into the session scope and then loop over them on an output page I think I over complicated it by using Ben Nadel's QueryToStruct script. Is there a simple way to do this? -- Scott Stewart ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (h) 919.874.6229 (c) 703.220.2835 ~| 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:320298 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: I give...anything inherently wrong with this code that would cause this error?
argumentCollection is not a valid attribute for cffunction. You want to pass that in when you call the function: fnProcessForm( argumentCollection=aStructOfSomeSort ); -- Josh -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Friday, March 06, 2009 10:29 AM To: cf-talk Subject: I give...anything inherently wrong with this code that would cause this error? Here's the error from CF: This expression must have a constant value. The compiler was processing: - A cffunction tag beginning on line 72, column 10. The error occurred in E:\Inetpub\webroot\wsm-dev\jQuery\ajax_file_upload_two\form_processing.cfc, line 79. (Line 79 is: returnType = struct) If I take out that line, then the error just references the line before it: access = remote. Without going into a thousand lines of code upfront, I was wondering if anything was wrong with this code up to this point. I've never gotten this error before (but, then again, I've never tried to do some of the things I'm doing with this, either.) Thanks, Rick cffunction name = fnProcessForm displayname = fnProcessForm argumentCollection = #form# dsn= #application.dsn# hint = Processes Submitted Form output = false access = remote returnType= struct cfargument name = dsn type = string required = yes cfset valueStruct = structNew() cfset arrFiles_200 = [] / cfset arrFiles_500 = [] / - A government big enough to give you everything you want is big enough to take away everything you have. - Thomas Jefferson ~| 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:320171 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfinclude template issues
No problem, this is a good list so feel free to ask more questions. -- Josh -Original Message- From: Scott Weber [mailto:swe...@thanksal.com] Sent: Thursday, February 19, 2009 2:52 PM To: cf-talk Subject: RE: cfinclude template issues I got it all figured it and im pretty much a dumb azz... Sorry for the interruption.. It's all my fault. I guess I now know more about CF then I did yesterday... Scott -Original Message- From: Gaulin, Mark [mailto:mgau...@globalspec.com] Sent: Thursday, February 19, 2009 3:52 PM To: cf-talk Subject: RE: cfinclude template issues Hi Scott After your /cfquery, add this to see exactly what the query is returning: cfdump var=#GetPageContent# cfabort The first line will dump the query (or any variable, which is very handy), and cfabort will end the page (before the error hits). If the dump doesn't show a column called PageInclude, or if that value doesn't look like a decent template name, then this query (or something) is the problem. (Remove the debugging code when you're done.) If the query looks right then add a simple cfinclude template=... and hard-code the query's value as the template. Follow this by cfabort and your page should do the cfinclude and then stop; if you get an error then the template you are trying to include is either missing or not reachable from your page. (You can put this tag near the top of the page... All you want to verify is that cfinclude works or doesn't. Remove the cfinclude after the test.) Post your results. Thanks Mark -Original Message- From: Scott Weber [mailto:swe...@thanksal.com] Sent: Thursday, February 19, 2009 4:23 PM To: cf-talk Subject: cfinclude template issues First, I have no clue about CF. We had a developer make a site in CF and now he is gone. I'm simply trying to add a new page to the existing site and it does not work. Here is the response that I get: Could not find the included template /products/bf.cfm. Note: If you wish to use an absolute template path (for example, template=/mypath/index.cfm) with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc. Using relative paths (for example, template=index.cfm or template=../index.cfm) does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible. The error occurred in D:\inetpub\wwwroot\server.com\products\index.cfm: line 101 101 :td colspan=3 rowspan=6 valign=top bgcolor=#5E5E5Ecfinclude template=#GetPageContent.PageInclude#/td If I look at the template #GetPageContent.PageInclude# it goes to this: cfquery name=GetPageContent datasource=web SELECT * FROM dbo.ProductPages WHERE PageID = '#URL.p#' /cfquery which is at the top of the index.cfm file. All other pages that were made this way work, except any new ones I create. I have to be missing something that is not making this work.. Any ideas on where I can start looking? 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:319562 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Calling functions with cfoutput
Yeah...I find I can get tremendous leverage by creating display methods...such as if you have a Person object (cfc), you can have a method displayAsTableRow, displayAsDiv, displayFormDetail etc. You can really limit code repetition this way. -- Josh -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, January 15, 2009 6:18 AM To: cf-talk Subject: Re: Calling functions with cfoutput Custom tags, cfmodule and cfinclude all exist for good reason, they are designed for modularising output. If you fully understand their use, you most likely would not desire to use a function to modularise your output though, of course, you are perfectly free to do so. While you are free to do what you will in any language, learning established practice is far from trivial or ridiculous. Things are usually done for good reason. It is a mistake to confuse conventions, no matter how common they are or how widely they're shared, with best practices. There is nothing inherently wrong with generating output from within a CFFUNCTION, and it has an OUTPUT attribute for exactly this reason. 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:317996 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Why is my CF8 server constantly hanging?
At my previous job, after switching to CF8, we had a couple of totally inexplicable crashes when we were using the CF8 server monitor in production. No hung threads, no pegged cpu, just kablooey and no evidence before the crash that anything was amiss. Once we switched it off, the crashes stopped happening. I think I remember earlier in the thread you mentioned something about the server monitor. Not saying it's causing your problem, but it's worth a try to switch it off if you haven't already. -- Josh -Original Message- From: Wil Genovese [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2008 7:53 AM To: cf-talk Subject: Re: Why is my CF8 server constantly hanging? Philip, Based on the load you mentioned earlier and the other data you've given me here is what I'd do. 1. upgrade the JVM to 1.6_10 2. backup my jvm.config and then edit the java.args line to this. java.args= -server -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS - Xmx512m -Xms512m -XX:MaxPermSize=128m -XX:PermSize=128m -XX: +UseParallelGC -Dsun.rmi.dgc.client.gcInterval=60 - Dsun.rmi.dgc.server.gcInterval=60 Dcoldfusion.rootDir={application.home}/ 3. next take several full stack dumps (not just a single part of one) and run it through seestack. It will give you comparisons between each stack dump and identify threads that are present from stack dump to stack dump. These are the hangers or slow threads. 4. since your traffic isn't so great that debugging will hurt performance, I would then turn on debugging (based on your IP address) and then analyze every query that is running per request. 5. use fusion reactor alerts to alert you to a slow running thread. FR has some good tools to help you see what is happening with the thread. Typical points of pain I've seen 1. JVM config not right - not enough memory heap, not enough perm memory, GC interval happening to often or not often enough. 2. Queries returning more results than you expected. Many times people put CFIF statements in their queries and not all conditions are accounted for thus an open ended where clause may try to return all the rows of a table. This can cause issues for large tables. 3. critical external dependancies are slow or failing. Besides DB access (check this also) , things like CFHTTP, external web services, mail server (CFPOP) and file system access can cause problems if your not setting a time out and not gracefully handling the times when the external dependancy is unavailable. 4. excessive looping or external dependancies can cause issues even if those dependancies are fast. Looping ten times over a resource call that takes 1/2 second to run still give a thread time of 5 seconds plus the time to process the rest of the thread. This is just the start - if none of the above solves the problems (or at least make things better) you may have to get in deeper. There is always the option of doing a full code review. settings up a second server with nothing but CF on it and see if you can duplicate the problems. If not then you may be looking at the server itself more than CF and code. If yes, then use this test server to hammer upon. Wil Genovese Sr. Web Application Developer One man with courage makes a majority. -Andrew Jackson A fine is a tax for doing wrong. A tax is a fine for doing well. ~| 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:316198 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: application.cfc error
Could it be that the application is timing out? What sort of traffic does the site get? What is your application timeout set to? -- Josh -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 9:20 AM To: cf-talk Subject: application.cfc error I don't understand what is happening. Anyone see something in my application.cfc that would cause this error? I can get rid of the error by reinitialing the application. I get this error every once in a while. It is like the application is not re-initialzing right and my application variables are lost when a user hits the web site and tries to use the application.cart variable. The application.page variable works fine. It display the pages etc. Error Info: Message: Element CART is undefined in a Java object of type class [Ljava.lang.String; referenced as Detail: Root Cause: Type: Expression Template: /act_addCartItem.cfm? Tag Context: Here is my application.cfc cfcomponent cfset this.name = testSite cfset this.sessionManagement = true cffunction name=onApplicationStart cfset application.dsn = datasource1 cfset application.page = createObject(component, com.testSite.pages) cfset application.cart = createObject(component, com.testSite.cart) cfreturn true /cffunction cffunction name=onRequestStart cfargument name=thePage type=string required=true cfif isdefined(URL.reinit) cfset onApplicationStart() / /cfif /cffunction cffunction name=onRequestEnd returnType=void output=false cfargument name=thePage type=string required=true cfset var cfid_local = cfset var cftoken_local = !--- if the user closes their browser, make sure all session variables get killed --- cfif isdefined(Cookie.CFID) and isdefined(Cookie.CFTOKEN) cfset cfid_local = cookie.cfid cfset cftoken_local = cookie.cftoken cfcookie name=CFID value=#cfid_local# cfcookie name=CFTOKEN value=#cftoken_local# /cfif /cffunction /cfcomponent ~| 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:315369 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: OT - Developers Needed for Paid Focus Groups in SF (SF Bay Area)
i responded to this, and just got a call back that they're really trying to find VB6 (!) developers. i told the woman who called me that i don't know of any offhand, but i'd put the word out. so all you VB6 people in the Bay Area, here's your chance to make a quick $200 :) Notice how CF isn't even in the programming languages list (the second list). Yet another dis. -- Josh ~| 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:313687 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i'll pay through paypal anyone who can debug my code
cfif IsDefined(cookie.Confirmed) EQ Yes should probably be rewrittened to cfif IsDefined(cookie.Confirmed) But I don't know if that would break things expecting it to be set to Yes. True or 1 perhaps... But Yes? I don't suspect that would work. FWIW this should work, CF (oddly) returns Yes or No for boolean comparisons. Of course, as you say, you don't really need the EQ Yes there in the first place. cfoutput#1 is 1#/cfoutput Returns: YES -- Josh ~| 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:313416 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: URL Scope and Form Scope
So now my question is how do you guarantee that the variable came from the form scope? cfif structkeyexists(form,myvarname) !--- do whatever --- /cfif -- Josh ~| 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:313363 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfqueryparam within a cfc
No it's not overkill. You could be passing in the argument as a form or url scoped variable for example: cfinvoke component=mycomponent method=function field_value=#url.field_value# If you just cfqueryparam everything you don't have to worry about it. -- Josh - Original Message - From: Hunsaker, Michael Scott [EMAIL PROTECTED] To: cf-talk cf-talk@houseoffusion.com Sent: Tuesday, September 30, 2008 1:21 PM Subject: cfqueryparam within a cfc Hello - We are consistently using the CFQUERYPARAM tag in our code but not within out CFCs. Here's a quick example: cfcomponet cffunction name=function cfargument name=field_value type=numeric required=yes cfquery name=get SELECT * FROM TABLE WHERE field = cfqueryparam value=#field_value# cfsqltype=cf_sql_integer /cfquery /cffunction /cfcomponent Is this over-kill or good practice? Thanks! Mike ~| 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:313299 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: (ot) Best development laptop
I've used my Toshiba Tecra A4 laptop for over three years now, toting it back and forth to the office every day, and I've had absolutely no problems with it. My particular machine isn't super beefy, but just as a brand, I'd highly recommend Toshiba products. If you got one of their higher end models I'm sure you'd be happy with it. -- Josh - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: cf-talk cf-talk@houseoffusion.com Sent: Friday, September 26, 2008 9:28 AM Subject: (ot) Best development laptop It's been suggested that the dev dept at our company (of which I am a part) get rid of our desktop machines and replace them with laptops. I'd like to run it past you guys and see what you thought about good, beefy development machines. Here's a partial list of the things that would need to run on each machine: * 2-4 concurrent instances of JVM (and ColdFusion) - a sites instance, a control panel instance for our current code, and a sites, and control instance for a new set of code we're developing. * Eclipse with mutliple projects, each containing potentially thousands of files * Flex * In at least my case, Photoshop and Flash CS3. * Any number of business style apps (outlook, browsers, office apps, etc.) Can any of you recommend high quality laptops that meet these criteria? We'd probably also be getting external monitors as well, but that's a little easier to define. I'd just like input from you guys as I'm sure that SOME of you are using laptops as your primary machines. ~| 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:313124 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4