• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

[Javascript] Object help


Harsesis    2

I'm currently writing a script that involves the divx web player plugin. I've checked the SDK that is available and it only lists a small number of functions available in the object. I was wondering it its possible to list the functions/methods/variables in an object.

I've tried:

for (f in window) if (window.hasOwnProperty(f) && typeof window[f] === 'function') { document.body.innerHTML = document.body.innerHTML + f + "<br/>";}

i've also tried

for (variable in plugin) { document.body.innerHTML = document.body.innerHTML + variable + "<//br>"; }

neither of the two work. The second bit of code lists the functions that all dom objects have and the custom functions that have been assigned but not the functions naitive to the object.

Is it possible to list the functions/methods/variables in a plugin?

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.