javascript - Silverlight window.external.notify() securityproblem? -


in silverlight application using webbrowser control.

i call following javascript function on page i'm navigating to.

    function notify() {         window.external.notify("close");     } 

the weird fact works when navigating page using:

this.browser.source = new uri("http://localhost/testoutofbrowser.web/htmlpage1.htm"); 

when navigate using real server name:

            this.browser.source = new uri("http://testservername/testoutofbrowser.web/htmlpage1.htm"); 

i javascript exception ('unspecified error.') when executing window.external.notify("close"); line.

this security related don't have clue how solve problem..

how can work?

for facing same or similar problem:

appearantly cross-domain scripting security issue. browser control not execute if domain of silverlight application , page(you navigating to) different. (! 127.0.0.1 , localhost evaluated 'different' domains )

i ended using relative uri browse page , solved problem.

grtz


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -