" (quindi un tasto con l'evento onclick che chiama un funzione a cui viene passato il nome di un dialogbox anchesso presente dentro la pagina Nel JSHeader invece ho questo: var xmlHttpGlobal=null; var container=null; function svuotaDialog(target){ campo=document.getElementsByName(target)[0]; campo.options.length=0; interrogaVista("http://localhost/Prove.nsf/AAA?ReadViewEntries"); container=document.getElementById("xml"); } function interrogaVista(url) { xmlHttpGlobal=getXMLHTTP(); xmlHttpGlobal.open("GET", url,true); xmlHttpGlobal.onreadystatechange = function() { if(xmlHttpGlobal.readyState==4){ if(xmlHttpGlobal.status==200) container.innerHTML=xmlHttpGlobal.responseText; else alert("qualche problema","titolo"); } }; } function getXMLHTTP(){ var A = null; try{ A = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ A = new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc){ A = new XMLHttpRequest(); } } return A; } sono 3 funzioni molto semplici...il dialog viene cancellato, il problema è che l'oggetto xmlHttpGlobal non va mai in onreadystatechange... ergo non è come se l'xmlhttprequest fosse morta :) ...sapete come mai? grazie mille">
> |  
Problema con javascript lotus domino 6
Carlo
Salve, ho una form con dentro un computed value di questo tipo:

"<input type=\"button\" value=\"Tasto Javascript\" onclick=\"svuotaDialog(\'DialogTarget\');\">"

(quindi un tasto con l\'evento onclick che chiama un funzione a cui viene passato il nome di un dialogbox anchesso presente dentro la pagina

Nel JSHeader invece ho questo:

var xmlHttpGlobal=null;
var container=null;
function svuotaDialog(target){
campo=document.getElementsByName(target)[0];
campo.options.length=0;
interrogaVista("http://localhost/Prove.nsf/AAA?ReadViewEntries");
container=document.getElementById("xml");
}

function interrogaVista(url)
{
xmlHttpGlobal=getXMLHTTP();

xmlHttpGlobal.open("GET", url,true);

xmlHttpGlobal.onreadystatechange = function() {
if(xmlHttpGlobal.readyState==4){
if(xmlHttpGlobal.status==200)
container.innerHTML=xmlHttpGlobal.responseText;
else
alert("qualche problema","titolo");
}

};
}



function getXMLHTTP(){
var A = null;
try{
A = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
A = new ActiveXObject("Microsoft.XMLHTTP");
} catch(oc){
A = new XMLHttpRequest();
}
}

return A;
}



sono 3 funzioni molto semplici...il dialog viene cancellato, il problema è che l\'oggetto xmlHttpGlobal non va mai in onreadystatechange... ergo non è come se l\'xmlhttprequest fosse morta :) ...sapete come mai?



grazie mille




You are here Problema con javascript lotus domino 6 - Carlo -
    re : Problema con javascript lotus domino 6 - cyberflaz -