Hi,
in my silverlight application I am using the webBrowser control.
I call following javascript function on the page i'm navigating to.
function notify() {
window.external.notify("Close");
}
The weird fact is that it only works when I am navigating to the page by using:
this.Browser.Source = new Uri("http://localhost/TestOutOfBrowser.Web/HTMLPage1.htm");
When I navigate to it using the real server name:
this.Browser.Source = new Uri("http://testServerName/TestOutOfBrowser.Web/HTMLPage1.htm");
I get an javascript exception ('Unspecified error.') when executing the window.external.notify("Close"); line.
This is most probably security related but I don't have a clue how to solve this problem..
How can I get this to work?