ColdFusion style variable dump for javascript

A colleague asked me today about how he could dump out a jQuery object and find out what was in it.

There are 2 ways I know of right now.

1) AjaxCFC contains a js file call dump.js and dDumper.js include these in your page, then use

dDumper(myQuery);

The output is appended to the bottom of the HTML in the page, so you may have to scroll down a bit.

2) is download and use the jQuery dump plugin

$.dump(myQuery);

This plugin looks exactly like a ColdFusion dump table.

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001.