Ciao a tutti,
ma FF non supporta di utilizzare XMLHttpRequest in modalità sincrona ?!? io
uso un noto script trovato in rete che posto sotto, ma se in
page_request.open('GET', url, false) metto false non funziona.
E cosa più assurda, almeno per me, funziona ma se ho attivato FireBug !!
????

Chi mi aiuta

Saluti

Bruce

/***********************************************
* Dynamic Ajax Content- © Dynamic Drive DHTML code library
(www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var loadedobjects="";
var rootdomain="http://"+window.location.hostname;

function ajaxpage(url, containerid, asinc){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){
location.href = "indexNoAjax.asp";
}
}
}
else
location.href = "indexNoAjax.asp"
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
page_request.open('GET', url, asinc)
page_request.send(null)
}


function loadpage(page_request, containerid,url){

if (page_request.readyState == 4 && (page_request.status==200 ||
window.location.href.indexOf("http")==-1))
{
document.getElementById(containerid).innerHTML=pag e_request.responseText;
theDiv=document.getElementById(containerid);
theScripts=theDiv.getElementsByTagName("script");


for (i=0;i<theScripts.length;i++){
url=(theScripts[i].getAttribute("src"));
var scriptToLoad = document.createElement("script");
scriptToLoad.src = url;
scriptToLoad.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(scriptToLoad);
theDiv.removeChild(theScripts[i]);
}
caricata = 1;

}

}