User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Enumerate an object's methods in Javascript? Page [1]  
Noen
All American
31346 Posts
user info
edit post

So I am delving deeper (or trying to) into the google maps API, but they provide a REALLY shitty class reference. It's horribly incomplete and limited.

Is there any way I can enumerate the methods of an object at runtime via javascript? This would help greatly in avoiding the need to freaking backtrace through every line of code, when I really just want to use the functionality they already have in place.

12/12/2005 2:46:07 AM

Noen
All American
31346 Posts
user info
edit post

nevermind, found a solution.

for reference this is handy as hell:

EnumIt

enter the id of the object you want, and it will enumerate the whole damn thing. works in ie and firefox

12/12/2005 3:07:25 AM

philihp
All American
8349 Posts
user info
edit post

"object" in javascript are extremely groovy. member variables and methods are pretty much the same thing... you can give a class a member variable, and you can give it methods... and then you can instantiate it as an object, and use those variables, and its methods... but you can change the variables... but you can also change the methods! and you can add new variables and methods too!

also, have some fun with the "prototype" keyword.

12/12/2005 9:05:45 AM

 Message Boards » Tech Talk » Enumerate an object's methods in Javascript? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.