Script Errors in Silverlight WebBrowser Control

Posted by Whiskas on Stack Overflow See other posts from Stack Overflow or by Whiskas
Published on 2010-06-13T16:39:27Z Indexed on 2010/06/13 16:42 UTC
Read the original article Hit count: 319

Filed under:
|

Hi,

I am showing a HTML page with a Flash video player on it in a Silverlight app using the WebBrowser control. The site itself is displayed perfectly and everything works just fine.

But when I want to close the player component, I somehow need to completely dispose the current HTML page with the flash player.

I tried navigating to about:blank, or even to other pages like google.com before the player component is hidden. But the flash video keeps on playing and the WebBrowser shows several Script Errors, which must be clicked in order to really leave the flash page.

Is there any way to instantly "clear" the WebBrowser control or to surpress the Script Errors so that it leaves the html/flash page?

In WPF there seem to be some methods for that, but I couldnt find any on the Silverlight WebBrowser control.

Any hints are appreciated,

Whiskas

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about webbrowser