Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    71
    Thanks
    8
    Thanked 0 Times in 0 Posts

    How to stop Internet Explorer script error messages

    Hi,

    Could I use javascript code to stop Internet Explorer script error messages?

    Bob Kuspe

  • #2
    New Coder
    Join Date
    Aug 2010
    Location
    FL
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post
    You could definitely use javascript to fix Internet Explorer script error messages, just make sure the code is correct and then you won't get any error messages

  • #3
    Regular Coder
    Join Date
    Aug 2010
    Posts
    966
    Thanks
    19
    Thanked 211 Times in 209 Posts
    Quote Originally Posted by BOBKUSPE View Post
    Hi,

    Could I use javascript code to stop Internet Explorer script error messages?

    Bob Kuspe

    Quote Originally Posted by codebyter View Post
    You could definitely use javascript to fix Internet Explorer script error messages, just make sure the code is correct and then you won't get any error messages
    Maybe he's thinking about a try catch block ?

  • #4
    New Coder
    Join Date
    Aug 2010
    Location
    FL
    Posts
    35
    Thanks
    0
    Thanked 1 Time in 1 Post
    bleh, don't use try catch blocks. If you have to resort to try catch blocks then you are most likely doing something wrong (unless detecting browsers, flash versions, etc).

    BOB:

    maybe post the error you are receiving in IE so we can take a look at whats going on.

  • #5
    New Coder
    Join Date
    Dec 2008
    Posts
    71
    Thanks
    8
    Thanked 0 Times in 0 Posts

    IExplorer advice messages

    oooppppsss!

    In true it is not "script error messages", but "advice messages" regarding the save of the system. I am using a .HTA file and when it open some URLS the IE shown an Alert message. What can I do to erase or ignore this message?

    Bob Kuspe

  • #6
    Regular Coder
    Join Date
    Aug 2010
    Posts
    966
    Thanks
    19
    Thanked 211 Times in 209 Posts
    Quote Originally Posted by codebyter View Post
    bleh, don't use try catch blocks. If you have to resort to try catch blocks then you are most likely doing something wrong (unless detecting browsers, flash versions, etc).

    BOB:

    maybe post the error you are receiving in IE so we can take a look at whats going on.
    Can you be a little more specific about where the try catch block
    may be used approprietly ?

  • #7
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,910
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by BOBKUSPE View Post
    oooppppsss!

    In true it is not "script error messages", but "advice messages" regarding the save of the system. I am using a .HTA file and when it open some URLS the IE shown an Alert message. What can I do to erase or ignore this message?

    Bob Kuspe
    You cannot disable messages which are generated by the operating system. They are there for security reasons.

  • #8
    New Coder
    Join Date
    Dec 2008
    Posts
    71
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Exclamation

    Phillip,

    You cannot disable messages which are generated by the operating system. They are there for security reasons.
    Ok. As I said I have an iframe inside of a page that contains a form element that I'm open webpages. The problem remains in the scripts from the pages are being open. The IE answer for a YES or NO.

    If I cannot disable could I simulates a "NO" clicking? It gives an error message answering YES or NO. What is the correct way for fixing it no debugging? How I simulates a "NO" clicking? If so, where I put the code, head or body?

    I am using a .HTA application.

    Regards

    Bob Kuspe
    Last edited by BOBKUSPE; 09-05-2010 at 11:51 AM.

  • #9
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,910
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Sorry, what part of my advice

    "You cannot disable messages which are generated by the operating system. They are there for security reasons. "

    did you not understand?
    I don't know how to spell it out any more clearly. You cannot simulate an onclick() event for - would you believe? - security reasons.

  • #10
    New Coder
    Join Date
    Dec 2008
    Posts
    71
    Thanks
    8
    Thanked 0 Times in 0 Posts
    I will take in mind your advice.

    At least can you say what happen with my script?

    I am trying to open inside an iframe the same urls in two distinct files:
    (1) .html file and (2) .HTA application. When it open in a html file there is not any error script message from IE, however when I try open ones in the HTA file the IE shows the error script messages.

    Bob Kuspe


  •  

    Posting Permissions

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