ciao a tutti,
utilizzo questa semplice funzione ajax:
function Simple_ajax(url, target, riscrivi) {
var url = noCache(url);
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
if (req) {
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
if(!riscrivi){
document.getElementById(target).innerHTML += execJS(req.responseText);
}else{
document.getElementById(target).innerHTML = execJS(req.responseText);
}
}
}else{
if(riscrivi) document.getElementById(target).innerHTML = '[img]'+path_sito+'/images/loading.gif[/img]';
}
};
req.open("GET", url, true);
req.send("");
}
}
che funziona perfettamente in tutti i browser.
Tuttavia, quando cerco di aprire delle pagine che necessitano di autenticazione via bowser, tipo:
http://{$_SERVER['PHP_AUTH_USER']}:{$_SERVER['PHP_AUTH_PW']}@pagina.php
in internet explorer 7 non si aprono.
Mi appare la finestra di dialogo di windows che mi dice: "impossibile aprire la pagina..."
Mentre con ff e ie 6.0 non ho problemi...
qualche consiglio?![]()