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 CFUNITED 2010 (Landsdown, VA) with:

Amazing JavaScript Port Of ColdFusion's CFDump Tag

By Ben Nadel on

Shuns, from down under, sent me a link to a JavaScript method "Dump()" that he wrote. It is pretty darn fantastic and looks and feels just like the ColdFusion CFDump tag that we have all come to love. Anyway, check it out when you get a chance; it's freakin' sweeeet!

http://www.netgrow.com.au/files/javascript_dump.cfm



Reader Comments

great find Ben and cudos to the author.

I just downloaded the source and I think that this would make one hell of a JQuery plugin ;)

Reply to this Comment

i get "too much recursion" when trying to dump a simple array of strings returned from JSON.

Reply to this Comment

Chris,

You would get this type of error when you have circular looping. Not sure how it would happen in a JSON return value unless you had something like a nested structure referring to its parent.

The same would happen in a CFDump call with circular references.

This is just theory, you should contact the site for support.

Reply to this Comment

Im not sure about JSON; if it's a nutual Javascript object then it will dump fine. I recently updated it aswell to allow for dom elements so get the latest version if you require this.

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.