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

This is sorce code:

<html>
...
<embed type="application/myapp-plugin" width=1 height=1 hidden="true">
<script>
function DoSomething()
{
var myObj = document.embeds[0];
if (myObj == null)
    alert("null!");
else
    alert("not null!");

var x = myObj.myFunc();
...
</script>
...
</html>

The problem is that this happens only somethimes and not allways. :( Why? 
How can I debug it? 


_______________________________________________
Mozilla-xpcom mailing list
Mozilla-xpcom@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to