06-13-2012 10:55 AM
I've been using the Microsoft Web Browser (IWebBrowser2) to pull data from a list of internet websites. I've run my program daily for about six months with no problems. Now all of the sudden I am receiving a pop up window stating "Internet Explorer Script Error." It asks me if I want to continue running scripts. I went in to Internet Explorer and verified that script debugging is disabled. But when using LabView, I continue to get the same error message. I looked for a node or option on the (IWebBrowser2) to solve this problem but haven't been successful.
Does anyone know how I can disable the script debugging in IWebBrowser2? I've already disabled debugging in Internet Explorer but am still getting the same error messages.
Solved! Go to Solution.
06-13-2012 02:25 PM
If it's "all of a suddent", then it sounds like a recent change in the specific web page you're loading has a bug in their Javascript that wasn't caught. Have you spoken the people responsible for the web page you're loading?
As for the suppression, you'd need to look at the documentation for the web browser control. Off-hand, you could try the
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.scripterrorssuppressed.aspx property
06-14-2012 12:43 PM - edited 06-14-2012 12:45 PM
Thanks for the link. It helped. Set the property "Silent" to true to resolve this issue.
Read/write |
Sets or gets a value that indicates whether the object can display dialog boxes. |