Now Available!

Almost all of my javascript code has been moved over to its new home at The Javascript Toolbox. Please go there to find the latest scripts, information, etc. These pages will remain here for a while for historical purposes in case anyone needs a production copy of old code.
Data Dumper
[Javascript Toolbox]  [Example]  [Source]
Perl has a great module called Data::Dumper that will show you an object's structure easily and quickly. I often found myself wanting to see similar output in Javascript, so I built a DataDumper library which gives similar type of output.
If you're building complex data structures or objects, this lirary can help you debug your code and see exactly what data is where!

Given this javascript code:
var x = new Object();
x["stringValue"] = "mystring";
x["numberValue"] = 123;
x["booleanValue"] = false;
x["nullValue"] = null;
x["functionValue"] = function dummy() { };
x["nestedStructures"] = new Object;
x["nestedStructures"]["subObject"] = new Object();
x["nestedStructures"]["subObject"]["subArray"] = new Array("one",2,false,new Object(),new Array());
x["nestedStructures"]["subObject2"] = new Object();
x["nestedStructures"]["subObject2"]["subArray"] = new Array();
x["nestedStructures"]["myoption"] = new Option('t','v');
Running this:
DumperTagProperties["OPTION"] = ['text','value','defaultSelected'];
results in this:

There are also functions included to easy Alert the structure and Popup a window with the output!