|
-
Apr 2nd, 2011, 05:29 PM
#1
Thread Starter
New Member
Javascript problems
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?
-
Apr 2nd, 2011, 05:35 PM
#2
Fanatic Member
Re: Javascript problems
Welcome to the forums. 
You have to set "ScriptErrorsSuppressed" property of the WebBrowser to True.
-
Apr 2nd, 2011, 05:36 PM
#3
Fanatic Member
Re: Javascript problems
<vbforums Website doing strange things, please ignore>
-
Apr 2nd, 2011, 05:41 PM
#4
Thread Starter
New Member
Re: Javascript problems
 Originally Posted by bergerkiller
Welcome to the forums.
You have to set "ScriptErrorsSuppressed" property of the WebBrowser to True.
I tried looking for "ScriptErrorsSuppressed" but could not find it. Sorry that im a newbie at this.
-
Apr 2nd, 2011, 05:43 PM
#5
Re: Javascript problems
 Originally Posted by Titan
I tried looking for "ScriptErrorsSuppressed" but could not find it. Sorry that im a newbie at this.
It's just a property like any other, that's accessed from the property window.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Apr 2nd, 2011, 05:47 PM
#6
Thread Starter
New Member
Re: Javascript problems
 Originally Posted by weirddemon
It's just a property like any other, that's accessed from the property window.

I was looking there but it isn't there.
-
Apr 2nd, 2011, 05:49 PM
#7
New Member
-
Apr 2nd, 2011, 05:50 PM
#8
Re: Javascript problems
 Originally Posted by Titan
I was looking there but it isn't there.
Are you using the express or full version of the IDE?
Also, try putting the following in your form's load event if you still can't see the property.
VB.NET Code:
WebBrowser1.ScriptErrorsSuppressed = True
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Apr 2nd, 2011, 05:52 PM
#9
Thread Starter
New Member
Re: Javascript problems
 Originally Posted by weirddemon
Are you using the express or full version of the IDE?
Also, try putting the following in your form's load event if you still can't see the property.
VB.NET Code:
WebBrowser1.ScriptErrorsSuppressed = True
I'm using Express and there is a full version?
-
Apr 2nd, 2011, 05:54 PM
#10
Re: Javascript problems
 Originally Posted by Titan
I'm using Express and there is a full version?
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?
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Apr 2nd, 2011, 06:00 PM
#11
Thread Starter
New Member
Re: Javascript problems
 Originally Posted by weirddemon
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?
No it had a error and I clicked the error box and it asked if I wanted to generate a class for it.
-
Apr 2nd, 2011, 06:02 PM
#12
Re: Javascript problems
 Originally Posted by Titan
No it had a error and I clicked the error box and it asked if I wanted to generate a class for it.
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.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Apr 2nd, 2011, 06:13 PM
#13
Thread Starter
New Member
Re: Javascript problems
 Originally Posted by weirddemon
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.
-
Apr 2nd, 2011, 06:16 PM
#14
Re: Javascript problems
 Originally Posted by Titan
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.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Apr 2nd, 2011, 06:24 PM
#15
Thread Starter
New Member
Re: Javascript problems
 Originally Posted by weirddemon
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.
OS: Windows 7
IE Version: 9 Beta
Project is..: Window Form Application
-
Apr 2nd, 2011, 06:26 PM
#16
Re: Javascript problems
 Originally Posted by Titan
OS: Windows 7
IE Version: 9 Beta
Project is..: Window Form Application
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.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Apr 2nd, 2011, 06:30 PM
#17
Thread Starter
New Member
Re: Javascript problems
 Originally Posted by weirddemon
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.
I can tell you it was no installing mess up. So it must be because it's Express. Well this sucks. Oh well I can't afford how expensive it is. I will try to get it in the future. Thank you for everything and trying to help me. I am very thankful.
-
Apr 2nd, 2011, 06:39 PM
#18
Re: Javascript problems
 Originally Posted by Titan
I can tell you it was no installing mess up. So it must be because it's Express. Well this sucks. Oh well I can't afford how expensive it is. I will try to get it in the future. Thank you for everything and trying to help me. I am very thankful.
Just because you didn't see an error, doesn't mean there wasn't one. That and an installation can get corrupted after it was installed.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|