473,836 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "ScriptErrorsSu ppressed" to True
which hides actuall error like in IE6?

Thanks,

Onur Güzel
Jun 27 '08 #1
4 4485
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

"kimiraikko nen" <ki************ *@gmail.coma écrit dans le message de
groupe de discussion :
fc************* *************** **...legroup s.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 "ScriptErrorsSu ppressed" 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

"kimiraikko nen" <kimiraikkone.. .@gmail.coma écrit dans le message de
groupe de discussion :
fccd024e-7cac-4fff-bab6-f66a92af2...@k1 3g2000hse.googl egroups.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 "ScriptErrorsSu ppressed" 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
3477
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 - plus some buttons to dynamically resize the image. I have gotten almost everything to work - I put in a function to simply disable the right-click option of the browser, but none of the other functions work. If I copy the source data out of...
0
3347
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 que me abra una instancia del form que contiene el WebBrowser y navegue el link. Hasta el momento sólo he logrado bloquear la ventana con el evento NewWindow (creo que se llama así) del WebBrowser, dándole e.Cancel = True... pero si hago eso...
19
2371
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 short script to open a local file the same way, using the script file as an example target: # browser-test.py import webbrowser import sys
7
7542
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 for the WebBrowser Control from Visual Basic .NET. This code worked in VB.Net 2003 but not in VB.Net 2005. Specifically this doesn't work... (all code is from article)
7
4674
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 and it seems that several events have the same problem. Can anyone help me to solve this issue? Vittorio
1
3311
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 IE6) with the following object tag: <OBJECT id="ModPkiObj" height="550" width="800" classid="http:ModPkiNew.dll#Mod.Online.Client.ModPkiNew.SignForm" name="ModPkiObj" VIEWASTEXT>
2
17979
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 all this script does is create an xml output file. After the navigate, the function stops and is triggered again when webbrowser_DocumentCompleted fires and then the XML file is read by the
1
4100
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 loop. The reason I'm trying to do so is to remove some specific scripts like "alert()" because it locks up the WebBrowser control. When there's an alert box is open, calling Navigate causes an exception. I need other scripts to be executed so I...
14
2111
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 information. True It opens firefox as expected, but the url is ...
1
10183
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
9812
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9658
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10828
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10579
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10244
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6975
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5814
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4444
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3103
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.