Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Pat Santora
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Pat Santora@patweb99 ) Lets You Run Adobe / Railo ColdFusion Code On-Demand

By Ben Nadel on
Tags: ColdFusion

Yesterday, Adam Cameron brought to my attention. This site, by Russ Michaels, allows you to paste ColdFusion code into a textarea and then execute it in either an Adobe ColdFusion or a Railo ColdFusion context, or both. It's pretty cool! In fact, I just used it to see if the default expression in CFParam tags behaves the same in both Adobe and Railo context:


As you can see, Adobe ColdFusion and Railo ColdFusion have a very different behavior in this context. Is this because Railo treats unscoped variables in a CFFunction tag differently than Adobe (I have no idea if it does)? Or, is this perhaps some side-effect of the way is actually implementing the code execution? I'm not sure.

I was able to get both engines to behave the same by adding a, "request.", scope prefix to the defaultValue references:


Anyway, it's a pretty cool service! It's be awesome get a "jsFiddle" style application going here where you could link to your code!

Reader Comments

Aargh this is the most useful thing in the world ever! I've always wanted a site like this. How did I not know about this, I'm sure I've even searched for this before!

Good find Ben (and Adam), thanks

FYI I am indeed working on a new version which is based on JSfiddle, it currently has collaboration features as well so people can work together on the code and will allow linking to code and using gists.
Sadly my spare time is very limited, so it is taking me forever to get it finished.