Enumerate your javascript object object's methods a.k.a. javascript intellisense

 In the system that I am currently maintaining, everything is a mess. You just won't know how to find something or where to find something unless you go down deep into their code. Hell!

 So while debugging a javascript portion and after hours of searching I still couldn't find the method in an object for which I am looking... I thought a way of evaluating the object's method would be possible in javascript. How do you do this? It's just a few lines of code! I dunno if this will work on other browsers but it did in IE7.
 

    for (var property in yourobject)
    {
      alert("Property: " + voucher[property] + "\r\n");
    }

 

Published 06-28-2007 1:10 AM by lamia
Filed under:

Comments

Thursday, June 28, 2007 4:33 AM by bonskijr

# re: Enumerate your javascript object object's methods a.k.a. javascript intellisense

hi,

better get your hands on the latest Aptana IDE, very nice intellisense... its based on Eclipse so being a java dev, you'll be right at home..

hth

Thursday, June 28, 2007 5:00 AM by lamia

# re: Enumerate your javascript object object's methods a.k.a. javascript intellisense

But I'm currently using netbeans. :) Thanks for the advice btw.

Thursday, June 28, 2007 6:45 AM by bonskijr

# re: Enumerate your javascript object object's methods a.k.a. javascript intellisense

ic, coz if you are using Eclipse, you can have Aptana as a  plug-in.. i love the extensibility of Eclipse btw... although currently NetBeans5.5 is smooth ;)

Thursday, June 28, 2007 5:41 PM by lamia

# re: Enumerate your javascript object object's methods a.k.a. javascript intellisense

Yes, Eclipse is still my favorite and I'm looking forward to using it again in my upcoming projects. :)

Monday, June 23, 2008 1:28 AM by r4dn3t

# re: Enumerate your javascript object object's methods a.k.a. javascript intellisense

i think this link can help you ;)

dean.edwards.name/.../enum