How to prevent Internet Explorer prompt "To help protect... ActiveX control could.." when initialize my web page...?
How to prevent Internet Explorer prompt "To help protect... ActiveX control could.." when initialize my web page...?
Don't use active X controls. Or Java Script. Or Flash.
Otherwise you need a work around. Depending on whats on your page will determine your work around.![]()
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
It depends upon why you are getting that warning. In most cases it's because of some javascript on the page, or even due to IE's proprietary style expressions or filters, any of which require certain basic Active X components to be enabled to operate.
If that's all it is, and you have the typical, or nearly typical IE setup:
Unless a user's security is abnormally tight, that only happens locally, as a security measure. As far as IE is concerned, javascript is ActiveX. Click on the bar and click on allow and click on yes. Once your page is live, this will not happen. You can also give your page 'the mark of the web'. That way (in most cases) it will not display the security bar locally either. Put this right after your <html> tag like so:
But, navigating away from the page to another local page, or including another local page on it via a frame or an iframe can be problematical if said page does not also have 'the mark of the web' on it.Code:<html> <!-- saved from url=(0014)about:internet --> <!-- this and above comment should be removed for live, non-demo use --> <head>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
You cannot force an error not to display within the javascript itself, though, as this is a security measure and that would defeat the point-- like giving the prisoners keys to the prison.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
There are a number of related errors; I'm just noting that there is no workaround in the code to disable it. <script> no_warning = 1; </script>
And, yes, putting it live will work. But if you don't, you can't add code that will remove the error.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
What error?
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Well, notification. Warning, not error, I suppose. It IS IE, though, so it's one and the same![]()
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
I think you are way out in left field on this one. It is a documented safety feature of the IE browser, intended to prevent code that you are unaware of from running locally without your permission.
It can easily be overridden by the method I've outlined above and in countless other places in these forums. One should only do so however, if one trusts the local content one is enabling. This is the case with a javascript like the one at issue here.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Well, you're not understanding my point, and I don't really care that much. Let's just say you're right, and I'm wrong. //shrug
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Bookmarks