Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at cf.Objective() 2013 (Bloomington, MN) with: Ryan Anklam

CFLive.net Lets You Run Adobe / Railo ColdFusion Code On-Demand

By Ben Nadel on
Tags: ColdFusion

Yesterday, Adam Cameron brought CFLive.net 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:


 
 
 

 
CFLive.net  
 
 
 

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 CFLive.net 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:


 
 
 

 
CFLive.net  
 
 
 

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

Reply to this Comment

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.

Reply to this Comment

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.