Skip to content Skip to sidebar Skip to footer

WP7 Browser Control Won't Invoke Javascript Error 80020101

I have the following: public MainPage() { webBrowser1.ScriptNotify += new EventHandler(webBrowser1_ScriptNotify); } void webBrowser1_ScriptNotify(object

Solution 1:

80020101 means that there is a problem compiling the function ready to execute it.
The problem is that appendChild() is expecting a node to be passed and you're giving it a string.

Try this instead:

<script type="text/javascript"> 
    function nativeCallback(e){ 
          var b = document.createElement('b');
          b.innerHTML = e;
          document.getElementById('callbackDiv').appendChild(b);
    } 
</script> 

You can also access callbackDiv directly:

callbackDiv.appendChild(b);

Post a Comment for "WP7 Browser Control Won't Invoke Javascript Error 80020101"