vb.net - OpenWebkitSharp for .NET -- any trick for getting Javascript to work with it in this scenario? -
i using openwebkitsharp browser in vb.net project. trying use webkitbrowser1.navigate display html in browser "on fly". works great basic html, javascript not appear work @ in scenario. example, have...
webkitbrowser1.documenttext = "<!doctype html><html><head><script>alert('this alert'); </script></head><body><p>this text</p></body></html>" the body text appears fine, there never javascript alert. made sure javascript enabled in webkit browser, that's not issue.
if use navigate method display local page contains javascript (ie webkitbrowser1.navigate("path/to/local/file"), javascript works perfectly. doesn't work @ when setting html using webkitbrowser1.documenttext.
for particular project, need generate html code , display "on fly", can't use webkitbrowser1.navigate. have use webkitbrowser1.documenttext instead (or similar).
any ideas?
or might there better way accomplish this?
thanks!
i ran similar situation recently, , while i'm still looking solution allows you're describing, here's decided workaround:
-save html temporary file -load temp file webkit control on form.
i'm considering making own modifications openwebkitsharp however, see if can make happen. basically, seems html loaded through documenttext follows different render path loaded through navigate.
Comments
Post a Comment