Results 1 to 4 of 4

Thread: VB IE scripting error

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2007
    Posts
    16

    VB IE scripting error

    I wrote a program that uses IE and every time I visit a webpage I get a javascript scripting error and the msgbox that says "Continue running scripts on this page?" and I need to keep them from showing up as it keeps halting my program. In internet options I have disabled script debugging and unchecked show all scripting errors. Does anyone know how to actually keep IE from showing me these error messages? These errors don't affect the operation of my program other than me having to click yes so I want to block these errors from ever being displayed. Can I set IE to actually ignore these? Can I trap the error within VB and cancel it out or step over it? Anything? Please help it is so annoying.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB IE scripting error

    You should be able to trap the error from with VB.

    Do you get a message box that displays the error?

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: VB IE scripting error

    Are you actually running IE, or are you running a web browser on your program's form?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2007
    Posts
    16

    Re: VB IE scripting error

    Sorry I should have explained. I'm using the webbrowser control within VB and IE itself is giving me the "Scripting error on this. Continue running scripts?".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width