doctype [?][strict] [loose] [none]
Dumper (object [,property]* ) : String
Traverse the object and return a string representation.
Dumper.write (object [,document [,property]*]) : void
Get the contents of the Dumper(object) call and call document.write() to write it to the page.
Dumper.alert (object [,property]*) : void
Get the contents of the Dumper(object) call and show it in an alert() box.
Dumper.popup (object [,property]*) : void
Get the contents of the Dumper(object) call pop up a new window to display the contents.
Dumper.setMaxIterations (number) : void
Set the max number of properties to be traversed. Defaults to 1,000. This is to prevent circular data structures from recursively following properties forever, causing the browser to lock up.
Dumper.setMaxDepth (number) : void
The maximum depth that will be inspected from the root object. This differs from maxIterations in that it doesn't restrict how many total properties to inspect, but rather how deeply within the tree to inspect.
Since DOM objects (elements, etc) have circular references and often many properties, when DataDumper hits these objects it takes special action. If it hits the window object itself, it returns "[window]". If it hits the document object, it returns "[document]". For other tags, it only returns the elements' tagName, nodeName, nodeType, id, and className properties.
|All Contents Copyright © Matt Kruse|