Creative Juices Bo. Co.

Satisfy Your Thirst For Something Refreshing!

A New CJ File Browser Released

A ColdFusion File Manager That You Can Use With TinyMCE or In Standalone Mode

CJ File Browser Screen Shot (cjFileBrowser)Well boys and girls, It's been over two years since the last time I released a version of my ColdFusion file manager. Where has the time gone? Today I would like to introduce CJ File Browser version 3.0. Not only can you use it as a plug-in with TinyMCE, but now you can also use it in standalone mode. Of course, the standalone mode will require a little tweaking on your part!

When I first released my file browser 5 years ago, I had one goal. To provide you with a basic ColdFusion File Browser so you could modify it, create your own or just delve into the code to learn how it works. That goal hasn't changed, but this one definitely is not simple. It's using a ColdFusion component as the file handler engine, jQuery to make the JavaScript easier to code and a few new options to ensure a secure deployment.

Why You Make It More Complicated, Dude?

I have to be honest with you. The reason it's taken me so long to release a new version, is because about a year and a half ago I embarked on a major re-write of the file browser. You see, what I release for you guys, is not what I use for my clients. My custom version is a little more polished and has a few cool tricks that I never meant for the general public. The code didn't have a lot of comments, there was a lot of custom hacks and it was really designed in such a way that generalizing it would have been a pain. And then, about a year ago, I dove head first into jQuery. That sparked another rewrite, more tweaking and one more rewrite.

This brings us to the current version. I attempted to keep things as simple as possible. The trade off I was dealing with, was between "easy to setup" vs. "easy to code". Easy to setup finally won out and that unfortunately meant the code is going to be a little harder to understand. And if your not familiar with jQuery, then your really going to hate me!

So What's Different?

That's the million dollar question, isn't it? Well, in a nutshell:

  • jQuery is handling all of the interface and controls.
  • A ColdFusion component (CFC) is handling all of the file management.
  • An XML file is being used to handle security restrictions.
  • CSS is used to handle the look & feel
  • TinyMCE can be initiated with variables that are passed to CJ File Browser.

That's just the main stuff. All the code has been verified against JSLint. The component has been verified for un-VAR scoped variables. Error handling is now using jQuery UI, instead of JavaScript alert and confirm dialogs. And there's so much more!

I've already posted the code in the CJBoCo Brew House, you can view the latest version by going to the CJ File Browser project page. I hope you like it. And as always, if you have any questions, comments on feature changes or you are having some problems, don't hesitate to let me know.