Solving ActiveX Problem in SharePoint

Did you get the following message will be a turn-on when loading public Sharepoint sites,

The Web site wants to run the following add-on: ‘Name ActiveX Control’ from ‘Microsoft Corporation’. If you trust the Web site and the add-on and want to allow it to run, click here…

To fix this problem, just create a js file and paste the following codes to that file,

function ProcessDefaultOnLoad(onLoadFunctionNames)
for (var i=0; i < onLoadFunctionNames.length; i++)
var expr=”if(typeof(“+onLoadFunctionNames[i]+”)==’function’){“+onLoadFunctionNames[i]+”();}”;
if (typeof(_spUseDefaultFocus)!=”undefined”)

And then upload the javascript file to SharePoint site. After the above process, then refer the javascript file link to SharePoint master page.
Now you didn’t get any ActiveX Control problem. For more information Email us.

Shantha Kumar T MCTS )
[email protected]