Some background: I have inherited a working Silverlight application which behaves as follows:
- there is an iframe on the host html page which itself connects to another page.
- this page is a long-lived request which returns a series of
<script>parent.callFunction(data)</script>
blocks - these scripts are executed, call up to their parent, which in turn calls the silverlight app itself using the html bridge.
In this way we have a working streaming data service via the browser into the app, but I can't make this work out-of-browser.
By using a WebBrowser control and window.external.notify
I'm able to recreate most of the functionality described, but the script blocks in the long lived request are not acknowledged or executed by the WebBrowser control.
Is there any way I can force the WebBrowser control to execute these script blocks?
Or, is there another way of achieving the goal? I've been chasing this problem on and off with fiddler for over a week before understanding what the problem was, and now can't find any information. Microsoft's idea seems to be to create my own version of IE using WinForms - but this seems like a poor substitute.