namespace SAPO.Utility.Dumper
Lib to dump (print, return, alert) a variable structure
 HowTo:
 

 var obj = {
      key1: 'value1',
      key2: 'value2',
      keyArray: ['arrayValue1', 'arrayValue2', 'arrayValue3']
      }

 SAPO.Utility.Dumper.printDump(obj);
 SAPO.Utility.Dumper.printDump(obj, 'target_element_id');
 SAPO.Utility.Dumper.alertDump(obj);
 SAPO.Utility.Dumper.windowDump(obj);
 alert(SAPO.Utility.Dumper.returnDump(obj));
 
 

Function Summary
alertDump (Object|String|Boolean param)
alert variable structure
printDump (Object|String|Boolean param, [String|Object target])
print variable structure. Can be passed an output target
String returnDump (Object|String|Boolean param)
return variable structure
windowDump (Object|String|Boolean param)
print to new window the variable structure

Function Details

function alertDump

alertDump(Object|String|Boolean param)
alert variable structure
Parameters:
param

function printDump

printDump(Object|String|Boolean param, [String|Object target])
print variable structure. Can be passed an output target
Parameters:
param
[target] (can be an element ID or an element)

function returnDump

String returnDump(Object|String|Boolean param)
return variable structure
Parameters:
param

function windowDump

windowDump(Object|String|Boolean param)
print to new window the variable structure
Parameters:
param