By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,402 Members | 1,226 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,402 IT Pros & Developers. It's quick & easy.

Webbrowser causes script-errors on a healty page

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.