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 the Author

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

Comments

avatar
6 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
7 Comment authors
NagmehranavinashCandiceAdal Design Recent comment authors
newest oldest most voted
Nag
Guest
Nag

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
Guest
mehran

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

avinash
Guest
avinash

thanks man…. :-)

Candice
Guest
Candice

Thank you! Thank you! Thank you!

Adal Design
Guest
Adal Design

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

Minh
Guest
Minh

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

Any help?