How to turn off the prompt for Active Content?

Hello,

I have a page in my local drive that uses Active Content. But every time I refresh it, it pops up a window asking me whether I want to run it or not. What should I do I want to refresh my page without the warning pops up every time.

Thank you very much.



Answer this question

How to turn off the prompt for Active Content?

  • Jehan Badshah

    These are new security precautions taken by IE7. Try going to Tools->Internet Options->Advanced and down to the "Security" section. There is a checkbox to always allow Active Content from your local machine. That should get rid of the prompt.

    -Reza


  • Gravy

    How about just use On Error Resume Next, stuff like that You can correct the syntax error fairly easily. If you have logic error, it can caught the exception before it shows up on screen. Check for error handling part of your language.
  • Brandon Merillat

    Thank you. I am using IE7 and checked "Allow active content to run in files from my computer." It only disabled the yellow banner blocker. Anyway, I am only trying to unlock security only for my program. Since I can change my program, I found out that I can use HTA instead. Now, my program runs perfectly without changing security.

    BTW, if you want to try the program I am making, go here. I hope it is useful. It is a special interest photo viewer that is best used on smaller web photos.

    http://magicalclick.spaces.live.com/


  • arodtwitt

    Yeah, I am using HTA in the end, which is very nice. For your concern, just fix the script. The pop-up message is a good way to tell you that your program has bugs, fix it, no compromise. If I can't be fixed, try converting it to VBScript and see if you get the same error. Sometimes the languages is limited, so you need to use other language to get around it. Like my code are all done in VBScript, but I still have a piece of JavaScript because VBScript doesn't support a certain property.
  • skyliner34

    For popups and the like (scripts, flash content, etc...) the setting "Allow active content to run in files from my computer." should take care of any file that is in a local or network drive.

    The setting in the registry for this is located in the registry here: HKeyCurrentUser\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN. there should be a dword entry here called iexplore.exe it should be set to 0.

    Some flavors of IE ignore these settings so make sure you are using the stock IE7 or IE6 (not one provided by DSL companies, MSN or AOL browser).

    ~ George ~

  • SaravanaKumar_1977

    Wow, that's weird. I don't know how to solve that. Anyone can help us
  • Mitch Wardrop

    Hi, thanks for the reply. I already checked that. Is it called, Allow Active content to run in files on My Computer This one disable the yellow banner blocker. Mine is a pop-up window. I think I have that on IE6 before. Do you know there is something else I should look for
  • fscarpa58

    Anyone Please help.
  • ElectricBliss

    Am having similar yet different problem with Active Content warning. Every webpage on my local drive that I attempt to use as home page triggers an Active Content warning every time, no matter how simple the html is. I've even tried a blank html page as home page (no text between <body></body>) and still get an active content warning. Opening other webpages from local drive does not trigger warning, until the page is set as "home", then it triggers warning when next opened. Any thoughts


  • NewbieDude

    i was in the same situation and ended up opting for a HTA. one problem i have is that if there is a javascript error on the page i get a popup stating that there has been an error and do i want to continue running the script. how do i turn this off

  • vijay1

    i have decided to improve the above code and add some way of logging the error. i have amended the function handleError to be

    function handleError(msg, url, linenumber)
    {
    /* code to store error details in a database call via AJAX */
    return true;
    }

    this is called in the same way using

    window.onerror = handleError;

    the above function works fine in IE. if an error occurs it is stored in my database, the user is oblivious to this and gets no indication of an error occurring.

    however, this doesnt work as expected in a HTA. if all i have inside the function is "return true" it works fine, however, if i place any code before the "return true" it fails. is there any way around this i really want to be able to log in some way that an error has occured and don't have time to amend all my code to include try catches etc.

  • Krutika

    what you have just said is so unbelievably obvious and yet i hadn't thought of that

    i have added a quick fix
    function handleError() {
    return true;
    }

    window.onerror = handleError;

    this will at least stop the user seeing the error dialog box. next step is to do something sensible rather than just hiding the error, that can wait for another day

    thanks for your help

  • MP Grewal

    thanks for your reply.
    during my application testing i will be removing all errors. however, one error may sneak through and i am not keen on letting the users see the popup if this does occur. knowing users they will kick up a fuss instead of clicking the "allow script to continue" button. i prefer the way IE handles an error by displaying the error icon in the bottom corner of the browser. surely there should be a way of disabling the error popup in HTA. this option is avalable in IE but not HTA, why is this

  • How to turn off the prompt for Active Content?