function print_r(theObj) {
var retStr = '';
if (typeof theObj == 'object') {
retStr = '
';
for (var p in theObj) {
if (typeof theObj[p] == 'object') {
retStr = '
[' p '] => ' typeof(theObj) '
';
retStr = '
' print_r(theObj[p]) '
';
} else {
retStr = '
[' p '] => ' theObj[p] '
';
}
}
retStr = '
';
}
return retStr;
}
print_r:function(theObj) {
var retStr = '';
if (typeof theObj == 'object'||typeof theObj == 'array') {
retStr = '
';
for (var p in theObj) {
if (typeof theObj[p] == 'object' || typeof theObj[p] == 'array') {
retStr = '
[' p '] => ' typeof(theObj) '
';
retStr = '
' XFUPLOAD.Tools.print_r(theObj[p]) '
';
} else {
retStr = '
[' p '] => theObj[p] '
';
}
}
retStr = '
';
}
$("body" ).append(retStr);
}