Webbrowser causes script-errors on a healty page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kimiraikkonen

    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:
    SORRY This page can not be found. You may have tried to access a page that doesn’t exist or has been moved. Please return to the hom...


    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
  • Patrice

    #2
    Re: Webbrowser causes script-errors on a healty page

    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" <kimiraikkonen8 5@gmail.coma écrit dans le message de
    groupe de discussion :
    fccd024e-7cac-4fff-bab6-f66a92af2918...l 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:
    SORRY This page can not be found. You may have tried to access a page that doesn’t exist or has been moved. Please return to the hom...

    >
    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

    Comment

    • kimiraikkonen

      #3
      Re: Webbrowser causes script-errors on a healty page

      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

      Comment

      • Patrice

        #4
        Re: Webbrowser causes script-errors on a healty page

        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



        Comment

        • Andrew Morton

          #5
          Re: Webbrowser causes script-errors on a healty page

          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


          Comment

          Working...