in my application I use the WebBrowser-Control to display a local HTML-file. The file includes jQuery and a custom js-File.
When I open the file with IE (locally), everything works just fine. However, if I display the file with the WebBrowser control in my application, JQuery is not fully working (Some stuff does work, things like $.(...)addClass('abc') does not).
Anyone have an idea why this might be the case? I’m usingNavigate() to navigate to the HTML-file and then use InvokeScript on the WebBrowser’s document to call a javascript function that is using jQuery. I’ve also tried calling the function by navigating to a javascript:-URL which didn’t work as well.
Thankful for any help
This is a long shot, but I have seen instances where the WebBrowser control defaults to an older version of the IE rendering engine for some reason even though a newer version of IE is installed. Some older versions of IE could have issues with jquery.
Try adding some js to ensure it’s using the version of IE you are expecting.
http://obvcode.blogspot.com/2007/11/easiest-way-to-check-ie-version-with.html