In a previous post I created a CFC to save simple variables into the session scope. In that CFC I had set up two functions, "SetSessionVar" and "GetSessionVar". However I ended up only needing the "SetSessionVar" function for my example so I never really tested the "GetSessionVar" function. Someone asked me today how to invoke it, and that is when I realized there were a couple little problems that I needed to fix.

[More]

In a previous entry I demonstrated how you can use the underlying Ext framework to enhance your CFWindow. And then Matt left a comment asking if it was possible to dynamically resize the CFWindow. The answer is yes and it's quite easy actually. The CFWindow utilizes the Ext.BasicDialog object which has a function called setContentSize, which resizes the dialog to fit the specified content size.

[More]

I ran accross a noteworthy question on Experts-Exchange today regarding a javascript error that occurs when you have a cflayout that navigates to a page with a cfchart tag.

[More]

Between Ben Nadel's blog and my blog, there has been some discussion on the use of CFLock, and a lot of the comments and questions are related to what we as a community consider "Best Practices".

Most ColdFusion developers consider it "Best Practice" to always lock the application scope every time you use it in your code. A lot of this really stems from the early versions of ColdFusion, when not locking your application scope could cause memory corruption. As of CF MX memory corruption is no longer an issue but race conditions are still possible, so Adobe still recommends that you lock your application variables as a "Best Practice" to be on the safe side.

Unfortunately, many developers really don't understand CFLock, and many developers don't understand that "Best Practices" are not always black and white.

[More]

We have an opening available for a Senior ColdFusion Developer at See's Candies (www.sees.com). If you are interested check out the job description and apply online at Monster or Dice. I'll be coming to the Orange County ColdFusion Users Group on Thursday, January 17th. As the Web Development Manager for See's, I will be the direct supervisor of the successful candidate. So if you live in the Los Angeles/Orange County area, come to the meeting and let me know you are applying.

In my first year or so of developing ColdFusion applications, I didn't really understand how to use CFLock. That caused me a lot of headaches, and I have learned to use it properly since then. In the last year or so I have had several calls and emails from people who's sites aren't performing well under load where I was able to identify their problems were due to improper use of CFLock. It is important to use CFLock to protect the integrity of data that is shared across requests in your application. However, you need to make sure you do it right. Improper use of CFLock may not cause any noticeable problem in your development environment, but once your application starts to experience a significant amount of load, poor locking implementations can cause your application to grind to a halt.

[More]

I was just reading a post on ColdFusion Muse on what Mark Kruger's motivations for blogging are, and it got me thinking. Why did I really start blogging? Sure I have noble intentions of sharing the knowledge and experience I have accumulated over the many years I have been developing with other ColdFusion developers. Sure I may find myself referring back to my blog entries to remember how I did something from time to time. And it may even bring me a little bit of business once people start to recognize who I am. All those things are reasons why I wanted to start blogging years ago, but they never really pushed me over the edge and motivated me to write my first blog entry.

[More]

I came up with a little short cut earlier today when I was commenting on an article Ben Nadel wrote and he thought it was pretty clever, so I thought other people might find it useful as well.

[More]

I just went on to cast my CFEmmy votes and was a bit suprised to see my blog listed under the best newcomer! Thank you for the nomination, it gives a little validation to know that I'm not just talking to myself and other people are finding what I am writing useful.

A couple weeks ago I wrote a post on Enhancing CFWindow with JavaScript, and it was recently asked if there was a way to identify all the windows and their visible status that currently exist on a page where you are using the ColdFusion.Window.create function to create new CFWindow instances. It took a few minutes of digging with FireBug, but I found that there is a ColdFusion.objectCache object that holds information about the various ext object that get created with the ColdFusion AJAX features. I created a function that loops through the objectCache and finds objects that have a "cfwindowname" property. Then used the Ext.BasicDialog.isVisible() function to determine if the window is currently visible.

[More]

More Entries