Guarda, io ho utilizzato questa procedura:
- nella pagina html ho inserito il seguente script:
codice:
<head>
........
<script type language="text/javascript" src="ieupdate.js"></script>
....
</head>
<body>
<script type language="text/javascript">startIeFix();</script>
.........
<script type language="text/javascript">endIeFix();</script>
</body>
Dopo di che ho aperto il notepad ed creato il file ieupdate.js inserendo il seguente codice:
codice:
var bo_noscript_id=0;
function isIE() {
var strBrowser = navigator.userAgent.toLowerCase();
return (strBrowser.indexOf("msie")>-1 && strBrowser.indexOf("mac"))<0;
}
function startIeFix() {
if(isIE()) {
document.write('<div style="display:none;" id ="bo_noscript_id_'+bo_noscript_id+'">');
}
}
function endIeFix() {
if (isIE()) {
document.write('</div>');
var theObject = document.getElementById("bo_noscript_id_" + bo_noscript_id++);
theObject.outerHTML = theObject.innerHTML;
}
}
Attento che se visualizzi la pagina in locale avrai sempre il messaggio del blocco degli ActiveX.
RS95