• 0

[Javascript] Object help


Question

Harsesis

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?

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.