Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables visible in console.log(VAR), but not in accessible script.

Status
Not open for further replies.

SuthernSir

Technical User
Feb 27, 2006
2
0
0
US
I'm using jQuery with flotr, but my question is more of a generic javascript question.

I have an object which has a lot of properties visible when I do console.log(varname). When I try to access some of those properties, it gives me 'undefined' instead of the value.

Here's an image that shows the editor and the console. (attached)

Does anyone know how I can access these values? I've tried .x.['scale'] as well, but get the same error.

I've used jQuery quite a bit and dabbled in normal javascript, but this is a real puzzler for me.

Thanks for any tips!
 
Can you provide your Javascript code? Without that it will be difficult to help.


Nitin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top