> Sometimes, on some (Windows) PCs, I got this error message:
> Error: myObj.myFunc is not a function
> Source file: file:///C:/Test/test.html
> Line: 27
> <embed type="application/myapp-plugin" width=1 height=1 hidden="true">
> function DoSomething()
> var myObj = document.embeds;
> if (myObj == null)
> alert("not null!");
> var x = myObj.myFunc();
> The problem is that this happens only somethimes and not allways. :( Why?
> How can I debug it?
When are you calling that function that tries to access the method that
plugin exposes? Consider to wait until
has fired so that the DOM with the embed element object has been built
_and_ that plugin has been loaded so that it can expose its methods.