I am trying to study the jquery class, but I have a hard time debugging an object because I can\'t see the element inside of it
you can also try Java Script method:
// Alert javascript object in alert box
function alertObject(obj){
for(var key in obj) {
alert('key: ' + key + '\n' + 'value: ' + obj[key]);
if( typeof obj[key] === 'object' ) {
alertObject(obj[key]);
}
}
}
Here 'obj' is:
// your object var
var getObject = {};
// object set with key an val
getObject.swfVersionStr = '10.0';
getObject.xiSwfUrlStr = null;
getObject.flashvarsObj = {};
getObject.parObj = {allowfullscreen: "true",wmode: "window",menu: "false"};
Call like this:
alertObject(getObject );
So, simple.. :)