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 8 of 8
  1. #1
    Regular Coder
    Join Date
    Oct 2005
    Posts
    124
    Thanks
    7
    Thanked 0 Times in 0 Posts

    preventing ie infobar

    Our software generates an HTML page that can be emailed and such and opened locally on the users computer. When you do this in IE, there's an infobar that says
    To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options...
    Is there a way to prevent this bar from coming up? It seems to appear when there is a <script> tag in the document, which is pretty unavoidable. Are there any workarounds to this?

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Posts
    726
    Thanks
    35
    Thanked 132 Times in 123 Posts
    Use firefox, safari or opera instead of IE.
    Or don't use scripts in IE that can touch the os-
    activeX, prompt, and mailto: hrefs come to mind..
    Last edited by mrhoo; 06-23-2008 at 07:40 PM.

  • #3
    Regular Coder
    Join Date
    Oct 2005
    Posts
    124
    Thanks
    7
    Thanked 0 Times in 0 Posts
    well, yeah... i use firefox. but i can't make the user use firefox...

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Can't guarantee it will work, but one possible solution is to add the Mark of the Web to the HTML.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    Regular Coder
    Join Date
    Jun 2007
    Location
    USA
    Posts
    527
    Thanks
    26
    Thanked 74 Times in 72 Posts
    Whenever I test scripts on my own computer in IE, I always get that annoying blocker. How can I disable it (for me only)? I have IE7.
    Trinithis

  • #6
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    To permanently disable this information, try to:
    1) Click the "Tools".
    2) Select "Internet Options"
    3) Click the "Advanced" tab
    4) Scroll down to the "Security" section and check "Allow active content to run in files on My Computer"

    Or alternatively, you can add this code right after the doctype:
    Code:
    <!-- saved from url=(0014)about:internet -->
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • Users who have thanked rangana for this post:

    Trinithis (06-25-2008)

  • #7
    Regular Coder
    Join Date
    Oct 2005
    Posts
    124
    Thanks
    7
    Thanked 0 Times in 0 Posts
    i think <!-- saved from url=(0014)about:internet --> is the best solution because it should work for all users, not just me. I'm having a little trouble getting it to work correctly though. I think there might be a few little nuances that I'm not aware of... I have 1 test file that it works fine with, and another where it doesn't seem to make a difference.

  • #8
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Quote Originally Posted by Duffman12 View Post
    i think <!-- saved from url=(0014)about:internet --> is the best solution because it should work for all users, not just me. I'm having a little trouble getting it to work correctly though. I think there might be a few little nuances that I'm not aware of... I have 1 test file that it works fine with, and another where it doesn't seem to make a difference.
    Probably related to the following part of that page:
    Note The HTML comment must be properly formatted for Internet Explorer to parse the information correctly. Proper format includes inserting a space immediately following the opening delimiter " <!-- " and just before the closing delimiter " --> ". The line must end in CR LF. Some HTML editors only insert a LF.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

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