[Javascript] Getting object property names as a string

Matt Warden mwarden at gmail.com
Wed May 24 19:33:41 CDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Very poor trimming on my part. Apologies. I was actually responding to:

"Beware: the above will likely cause you to force-quit your browser if
test is a DOM node.  After making that mistake three or four times, I
learned to write to the DOM instead of alerts when I'm debugging  objects."

And, to that, I say:

Firebug is your friend:

http://www.joehewitt.com/software/firebug/faq.php



Matt Warden wrote:
> On 5/24/06, Scott Reynen <scott at randomchaos.com> wrote:
> 
>> On May 24, 2006, at 12:21 PM, Ryan Cannon wrote:
>>
>> > Greetings, this feels like a silly question, but I'm looking for a
>> > way to access an object's property names as a string. For example:
>> >
>> > var test = { foo: 'bar' };
> 
> 
> Firebug is your friend:
> 
> http://www.joehewitt.com/software/firebug/faq.php
> 


- --
Matt Warden
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEdPtlrI3LObhzHRMRAifdAKDGP4QbrNs2UvbRMXwhp5QW/63mygCfQClA
yh1/tlx9IlZq+BAPfCVEwEo=
=2oU6
-----END PGP SIGNATURE-----



More information about the Javascript mailing list