LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

explorer script error

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(4,783 Views)

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

0 Kudos
Message 2 of 3
(4,770 Views)
Solution
Accepted by topic author JFrakes

Thanks for the link.  It helped.  Set the property "Silent" to true to resolve this issue.

 

IWebBrowser2:: Silent

Read/write

Sets or gets a value that indicates whether the object can display dialog boxes.

Message 3 of 3
(4,752 Views)