NavigationLibrariesdoctype [?][strict] [loose] [none] |
Data Dumper |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class MethodsDumper (object [,property]* ) : StringTraverse the object and return a string representation.
Returns: String Dumper.write (object [,document [,property]*]) : voidGet the contents of the Dumper(object) call and call document.write() to write it to the page.
Returns: void Dumper.alert (object [,property]*) : voidGet the contents of the Dumper(object) call and show it in an alert() box.
Returns: void Dumper.popup (object [,property]*) : voidGet the contents of the Dumper(object) call pop up a new window to display the contents.
Returns: void Dumper.setMaxIterations (number) : voidSet 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.
Returns: void Dumper.setMaxDepth (number) : voidThe 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.
Returns: void NotesDOM ObjectsSince 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 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||