An Inaccessible JavaScript Object property - Why is Firebug showing this?
Posted
by Matty
on Stack Overflow
See other posts from Stack Overflow
or by Matty
Published on 2010-06-03T18:02:36Z
Indexed on
2010/06/03
18:34 UTC
Read the original article
Hit count: 243
JavaScript
|firebug
So, I'm attempting to access the content of an object and for the life of me can't figure out why I can't. I'm starting to believe that the object doesn't have the properties that Firebug indicates that it does. More likely than that I'm just not using the right syntax to access them.
Give the following function:
function(userData) {
console.log(userData); // statement 1
console.log(userData.t_nodecontent); // statement 2
}
Which generates the following FireBug output for statement 1
and unknown
for statement 2.
Is there something obvious that I'm overlooking in the way I'm attempting to reference the value of t_nodecontent
? I'm at a loss :(
© Stack Overflow or respective owner