Script Errors on Login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gambletron
    Junior Member
    • May 2010
    • 12

    #1

    Script Errors on Login

    Hi all - I created a simple program using the sample VB code in James Butler's book on the Betfair Exchange API. It just outputs the latest odds for selected leagues. It works fine but I always get this annoying script error coming up multiple times immediately after I login. See attached. I have to press YES a few times and they go. Any ideas on how to remove this?
    Attached Files
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    I get that too. I also just click past it and would be interested in getting rid.

    Comment

    • geoffw123
      Senior Member
      • Mar 2014
      • 250

      #3
      Hi

      Is this any help ?

      https://appuals.com/how-to-fix-an-er...-on-this-page/

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Cheers. I'll give it a whirl. Not installing Java though!

        Comment

        • gambletron
          Junior Member
          • May 2010
          • 12

          #5
          Hi - thanks for the link. It certainly seems to be talking about the problem I am getting but have tried the suggestions and still not clearing the error. I cant believe unticking "Display a notification about every script error" doesnt work! I see from the comments on that page many have this problem and just live with it. I will keep trying.

          Comment

          • WTPooh
            Member
            • May 2012
            • 88

            #6
            In the properties of WebBrowser control set ScriptErrorsSuppressed to True.

            b.PNG

            Or add to your code
            webBrowser1.ScriptErrorsSuppressed = True

            Comment

            • gambletron
              Junior Member
              • May 2010
              • 12

              #7
              Genius! That line of code worked - so simple in the end - thanks so much

              Comment

              Working...
              X