469,924 Members | 1,416 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,924 developers. It's quick & easy.

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 4287
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Trevor Fairchild | last post: by
reply views Thread by Abraham Echenique Carta | last post: by
19 posts views Thread by Blair P. Houghton | last post: by
7 posts views Thread by Vittorio | last post: by
2 posts views Thread by Ryan Ramsey | last post: by
1 post views Thread by Sin Jeong-hun | last post: by
14 posts views Thread by Ron Adam | last post: by
1 post views Thread by =?Utf-8?B?Q2FtZXJvbiBUYXlsb3I=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.