I'm making a internet browser. Yes, I am very new to Visual Basic and I am using Microsoft Visual Basic 2010 Express and.. When I visit sites and something on the page is reading from a .js file it returns in a error. How can I fix this? :confused:
Printable View
I'm making a internet browser. Yes, I am very new to Visual Basic and I am using Microsoft Visual Basic 2010 Express and.. When I visit sites and something on the page is reading from a .js file it returns in a error. How can I fix this? :confused:
Welcome to the forums. :wave:
You have to set "ScriptErrorsSuppressed" property of the WebBrowser to True.
<vbforums Website doing strange things, please ignore>
It's just a property like any other, that's accessed from the property window.
http://img28.imageshack.us/img28/8062/71676273.png
edit
Yeah, but you have to pay for it. I got it free through DreamSpark, but it's super expensive otherwise.
That might be a feature not in the free version, but that seems highly unlikely.
Did the code I showed work?
That's really weird. My guess is that this property isn't available in the Express edition or your installation is messed up.
Or... are you making a WinForms project or WPF?
Also, what site are you trying to access that you're getting this error on? I'd like to test it on my end.
http://forumpromotion.net
Or any site that has like a script on the index that links to a .js file. Also it has posting issues with phpBB only with char typing.
I'm not getting a javascript error, with or without that property. I've also heard that the web browser control just inherits the properties of IE, since it is essentially just a stripped down version of IE. So if your version of IE doesn't have that property enabled, or something similar to it, that might be the problem.
What OS are you using? What version of IE do you have installed? What type of project is this? WinForms or WPF?. It's different with WPF, so I need to know.
That's the same setup as me, with the exception of the VS Pro and I have the RC of IE9. So, my only guess is that this feature isn't available in the Express edition or your installation is messed up.
You can always try reinstalling it VB Express and see what happens. Other than that, I have no other suggestions. Sorry.