Posted: October 31, 2006 at 9:01 AM by Ben Nadel
I was under the impression that when you included a template via the page context Include() method, the template was simply included as a text file. <!--- Include page without parsing. ---> <cfset GetPageContext().Include( "./include.cfm" ) /> I touched upon this in my entry about reading in files using CFInclude . Charlie Are... read more »
Comments (14) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 31, 2006 at 8:11 AM by Ben Nadel
To learn all about Skin Spider, click here . To view the most updated application, click here . To view the current code base, click here . Until now, we only knew one thing about our forms: they were either submitted or they weren't. That might be two things, but I am going to consider it one thing since they both depend on a single value (... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 30, 2006 at 6:18 PM by Ben Nadel
I have seen on some message boards people say to use cfinclude to read in files. I use cffile with action="read" to read in files right now. Is there a better way to do it? How can you read in a file using cfinclude? NOTE : Charlie Arehart has pointed out serious flaws in my logic below, regarding GetPageContext().Include(). Please see my othe... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 30, 2006 at 9:15 AM by Ben Nadel
To learn all about Skin Spider, click here . To view the most updated application, click here . To view the current code base, click here . In my earlier updates, I created two ColdFusion component configuration objects, Config.cfc and PublicConfig.cfc . After some discussion on the blog, I have decided to go with the private Config.cfc. ... read more »
Comments (3) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2006 at 10:34 AM by Ben Nadel
I haven't been blogging too much lately. The main reason for this is that my girlfriend just got a new Kitty, Isabelle (Izzy for short). She is tooooo cute. But, she's a lot of work. Hopefully, once things get back into more of a schedule I will pick up the blogging a bit more. And, just so you can all see what's keeping me from my computer, here... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2006 at 9:31 AM by Ben Nadel
Sorry for the delay in posting. Over the last two weeks, my girlfriend and I have gotten a little kitten, Izzy, who is freakin' adorable beyond all measure. I have also had to go to several birthday parties including my mother's and my girlfriends. So, needless to say, things have been a bit hectic. Because of the busy schedule I missed the push ... read more »
Comments (8) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 27, 2006 at 8:56 AM by Ben Nadel
To learn all about Skin Spider, click here . To view the most updated application, click here . To view the current code base, click here . This is a very minor update. I prepared the ColdFusion user defined library structure. The library itself, UDFLib.cfc , is broken up into smaller, more cohesive libraries: AJAXLib.cfc ArrayLib.cfc ... read more »
Comments (23) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 26, 2006 at 3:26 PM by Ben Nadel
Before I learned that ColdFusion could reset the page buffer (either though the CFContent tag or through GetPageContext()) I used the CFSilent tag to cut down all pre-page processing white-space. Then, once I learned about clearing / resetting the page buffer, I started putting that in my header files right before the doctype definition. Right no... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 26, 2006 at 11:30 AM by Ben Nadel
This is Al's speech from the movie Any Given Sunday. If this doesn't inspire you and get you all reved up and give you some possitive thoughts about team-work, you might not be alive. I have this speech on my iPod and will sometimes just listen to it on repeat. Awesome stuff here, awesome stuff! ... read more »
Comments (3) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 26, 2006 at 9:07 AM by Ben Nadel
Yesterday, in my blog entry on programmatic configuration objects , Peter Bell pointed out some cool things you could do if your object instance data variables were private and accessible only via getters and setters. Of the things that he mentioned, one was the use of wrapper classes... at least, I think that's what he was getting at. In any r... read more »
Comments (11) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 25, 2006 at 8:43 AM by Ben Nadel
I've been seeing a lot of Liquid Page Layouts popping up lately. I have to say, I just don't get it. Maybe people just aren't doing it right, but it rarely makes my viewing experience any better. Point of fact, most of the time, I find a liquid page harder to read. Think about newspapers for a second. Do you ever see a newspaper have full-page (ho... read more »
Comments (11) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 25, 2006 at 8:16 AM by Ben Nadel
For anyone who follows my blog, you know that I LOVE using the underlying Java methods of ColdFusion objects. I had went back and forth with Ben Forta a bit about this, but apparently, Jason Delmore at MAX 2006 has confirmed that this is, in fact, a completely valid way to program in ColdFusion . Freakin' sweet ass sweet! Java and ColdFusion i... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 25, 2006 at 7:55 AM by Ben Nadel
To learn all about Skin Spider, click here . To view the most updated application, click here . To view the current code base, click here . For this update, I have created two configuration objects. One of the things that I want to do in this iteration of the application is pull the configuration information out of the Application.cfc (whi... read more »
Comments (22) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 24, 2006 at 2:24 PM by Ben Nadel
Just a minor thing that I came across today; ColdFusion query of queries defines hard-coded integer values as type BIGINT. While this is a very minor detail, it can cause some issues when performing a UNION as I had to do today (I had join a query to itself in a parent-child relationship query). I had a query that looked like this: <!--- Qu... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 24, 2006 at 10:40 AM by Ben Nadel
My co-worker was going through some of my code and spotted an error that I had made when using a CGI variable. I had misspelled the key "script_name". The reason that I had not caught it was because ColdFusion did not throw any error. Strange. When I did some more testing on this, it seems that you can basically access any key in CGI and will not ... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink