Main Tutorials

JQuery hit Internet Explorer ActiveX controls warning? – Solution

The following code is a JQuery javascript which will refresh the captcha image automatically wherever user clicked on it.



The code is working fine in FireFox. However, when i test it in Internet explorer 6 or 7, i hit the following Active X controls warning.

Your security settings do not allow Web sites to use ActiveX controls installed on your computer. This page may not display correctly.Click here for options.

Solution

1) Deploy it to web server – When we test the some JQuery’s features in a local system, IE so call “IE-way security feature” will prompt it as Active X warning. The warning will disappear when it deployed to web server.

2) Use Mark of the Web (MOTW) – We can still suppress or disable the ActiveX controls warning by putting following code before the opening html tag:

 


......


The above code is call “Mark of the Web (MOTW)”, this is a feature of Windows Internet Explorer that enhances security by enabling Internet Explorer to force Web pages to run in the security zone of the location the page was saved from.

Please visit http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx to understand more about Mark of the Web (MOTW).

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
7 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Nag
10 years ago

Open ms word/excel applications without using activeXObject for cross browser

function OpenFile(){
alert (‘Work’);
//would like to modify ActiveXObject with any other object for cross-browser.
var x = new ActiveXObject(“WScript.Shell”);
x.run(‘winword.exe’);
}
//Above code works only in IE. But don’t want to use activeXObject.
//Is there any possibility to open a word file in Internet Explorer
//without using activexobject. Request for a solution.

mehran
12 years ago

Deploy it to web server !
brilliant !!!!!!!!!!!!!!!!!!
tnx a lot man

avinash
12 years ago

thanks man…. 🙂

Candice
13 years ago

Thank you! Thank you! Thank you!

Adal Design
14 years ago

Thanks for putting that memo/reminder up. I’ve already posted links to here on another mis-guide blog.

Minh
14 years ago

Hi, when try to add the MOW, I cannot click to open any link on the page.

Any help?