473,395 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Webbrowser causes script-errors on a healty page

Hi,
Just to test, i placed a simple webbrowser to login a site, this site
has no problems and has same error with IE6 SP2 but it's suppressed as
well and no problem with Firefox browser, but using webbrowser it
shows scripting errors:

There are a lot more sites that encounters scripting problems though
they work just fine in Firefox, a sample:
http://www.anaivanovic.com/forum/login.php

On the site above, after you enter your username and password, then
press "login" button, you got a pop-up with script-errors but no error
in IE6 nor in Firefox.

Is there a bug in Webbrowser control with .NET 2.0? (I'm using VB
2005)

or is my unique solution is to set "ScriptErrorsSuppressed" to True
which hides actuall error like in IE6?

Thanks,

Onur Güzel
Jun 27 '08 #1
4 4464
The webbrowser uses basically the same DLLs than IE so it's quite consitent
if you have the same error with IE6 SP2 and the webbrowser control.

I would check what exactltis this error to see what caused it for my
personal records but anyway as you can"t update this js script there is
likely not much you can do other than hiding it.

(or do you mean you have a problem with the webbrowser control but not with
IE6 SP2 ?)

---
Patrice

"kimiraikkonen" <ki*************@gmail.coma écrit dans le message de
groupe de discussion :
fc**********************************...oglegroups.com...
Hi,
Just to test, i placed a simple webbrowser to login a site, this site
has no problems and has same error with IE6 SP2 but it's suppressed as
well and no problem with Firefox browser, but using webbrowser it
shows scripting errors:

There are a lot more sites that encounters scripting problems though
they work just fine in Firefox, a sample:
http://www.anaivanovic.com/forum/login.php

On the site above, after you enter your username and password, then
press "login" button, you got a pop-up with script-errors but no error
in IE6 nor in Firefox.

Is there a bug in Webbrowser control with .NET 2.0? (I'm using VB
2005)

or is my unique solution is to set "ScriptErrorsSuppressed" to True
which hides actuall error like in IE6?

Thanks,

Onur Güzel

Jun 27 '08 #2
On Jun 18, 7:35*pm, "Patrice" <http://www.chez.com/scribe/wrote:
The webbrowser uses basically the same DLLs than IE so it's quite consitent
if you have the same error with IE6 SP2 and the webbrowser control.

I would check what exactltis this error to see what caused it for my
personal records but anyway as you can"t update this js script there is
likely not much you can do other than hiding it.

(or do you mean you have a problem with the webbrowser control but not with
IE6 SP2 ?)

---
Patrice

"kimiraikkonen" <kimiraikkone...@gmail.coma écrit dans le message de
groupe de discussion :
fccd024e-7cac-4fff-bab6-f66a92af2...@k13g2000hse.googlegroups.com...
Hi,
Just to test, i placed a simple webbrowser to login a site, this site
has no problems and has same error with IE6 SP2 but it's suppressed as
well and no problem with Firefox browser, but using webbrowser it
shows scripting errors:
There are a lot more sites that encounters scripting problems though
they work just fine in Firefox, a sample:
http://www.anaivanovic.com/forum/login.php
On the site above, after you enter your username and password, then
press "login" button, you got a pop-up with script-errors but no error
in IE6 nor in Firefox.
Is there a bug in Webbrowser control with .NET 2.0? (I'm using VB
2005)
or is my unique solution is to set "ScriptErrorsSuppressed" to True
which hides actuall error like in IE6?
Thanks,
Onur Güzel- Hide quoted text -

- Show quoted text -
Thanks Patrice and after investigating more, i found out IE6 SP2
causes the same JS error but hides as well. However i agree that we
have nothing to do much beyond hiding the error with the property
described above. Plus, that's the fact that Webbrowser control wrapped
based-on Internet Explorer so that's an expected behaviour, another
fact that, i have no such problem in Firefox, so i wish there would be
a stable Firefox ActiveX control (I tried a crappy one by finding on
the net which didn't work).

However, it seems that hiding is the unique solution in that case
because developer cannot fix the IE library by itself rather than
updating the latest IE version like IE7.

Thanks,

Onur Güzel
Jun 27 '08 #3
Thanks Patrice and after investigating more, i found out IE6 SP2
causes the same JS error but hides as well. However i agree that we
have nothing to do much beyond hiding the error with the property
described above. Plus, that's the fact that Webbrowser control wrapped
based-on Internet Explorer so that's an expected behaviour, another
fact that, i have no such problem in Firefox, so i wish there would be
a stable Firefox ActiveX control (I tried a crappy one by finding on
the net which didn't work).

However, it seems that hiding is the unique solution in that case
because developer cannot fix the IE library by itself rather than
updating the latest IE version like IE7.
Ok so hide the error as the js is on a site on which you have no control.
You still may want to check what is the exact error in IE in case it could
be fixed server side, you could then report the problem. It could be just
something that should be done differently to run cross browser...

--
Patrice

Jun 27 '08 #4
kimiraikkonen wrote:
>>site has no problems and has same error with IE6 SP2 but it's
suppressed as well and no problem with Firefox browser, but using
webbrowser it shows scripting errors:
In IE, Tools->Internet Options->Advanced tab and see the options under the
"Browsing" section for, e.g., "Display a notification about every script
error". It might help you narrow down what's going wrong.

Also, the Firebug add-on for FF might help with its Javascript console.

Andrew
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Trevor Fairchild | last post by:
I'm trying to have VB6 write an html file during run-time, with some VBScript functionality. The intent is to display images based on the current record within the program - using a WebBrowser -...
0
by: Abraham Echenique Carta | last post by:
Hola. Tengo una ventana con un objeto WebBrowser (.Net 2.0)... resulta que cuando estoy navegando con él y hay un link con target='_blank', me abre una ventana de Internet Explorer y necesito...
19
by: Blair P. Houghton | last post by:
I'm just learning Python, so bear with. I was messing around with the webbrowser module and decided it was pretty cool to have the browser open a URL from within a python script, so I wrote a...
7
by: Doe | last post by:
I've been trying this for months. Doesn't work. I've used the code in this article, http://support.microsoft.com/kb/311288/en-us, HOW TO: Invoke the Find, View Source, and Options Dialog Boxes...
7
by: Vittorio | last post by:
Hi all, I am trying to avoid that a webbrowser object will be closed by a window.close() javascript. Trying to use the WindowClosing event i discovered that it is not fired. I am using VB.NET 1.1...
1
by: L. Chernov | last post by:
Hello, I am trying to work with .Net 2005 WebBrowser object, and put it on a "Windows control library" (embedded in a user control class) and then I am executing it from an ASP.Net webform(with...
2
by: Ryan Ramsey | last post by:
I have been chasing this one down for a week and have narrowed it down to a machine issue. I have the following code: webBrowser.Navigate(http://finao.net/post_dkp.php?database=40); Basically...
1
by: Sin Jeong-hun | last post by:
Is it possible to modify the HTML or the script of a WebBrowser control in DocumentCompleted event? I tried to modify it but that caused DocumentCompleted again so the program fell in an endless...
14
by: Ron Adam | last post by:
Is anyone else having problems with the webbrowser module? Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) on linux2 Type "help", "copyright", "credits" or "license" for more...
1
by: =?Utf-8?B?Q2FtZXJvbiBUYXlsb3I=?= | last post by:
Is there any way to programmatically purge the forward/back history of a .NET 2.0 embedded WebBrowser control?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.