Grazie anche a te per la risposta...
...purtroppo però il risultato è lo stesso...
...io posto un po di codice, magari potrebbe essere d'aiuto....
<SCRIPT
var mese = document.getElementById('Mese').selectedIndex;
var anno = document.getElementById('Anno').selectedIndex;
oppure
var mese=document.getElementById('Mese').options[document.getElementById('Mese').selectedIndex].value;
var anno=document.getElementById('Anno').options[document.getElementById('Anno').selectedIndex].value;
function GetXmlHttpObject(){
if (window.XMLHttpRequest){
return new createXmlHttpRequest();
}
if (window.ActiveXObject){
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}
function createXmlHttpRequest(){
var xmlhttp = null;
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = stateChanged;
return xmlhttp;
}
function stateChanged(){
if (xmlhttp.readyState==4){
var resp = xmlhttp.responseText;
bil = window.open('Bilanciamento','width=400','height=40 0');
bil.document.write(resp);
}
}
function bilanciaTarvisio(){
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null){
alert ("Browser does not support HTTP Request");
return;
}
var url="mostraBilanciamento.php";
url=url+"?v=T";
url=url+"&mese="+mese;
url=url+"&anno="+anno;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
function bilanciaGries(){
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null){
alert ("Browser does not support HTTP Request");
return;
}
var url="mostraBilanciamento.php";
url=url+"?v=G";
url=url+"&mese="+mese;
url=url+"&anno="+anno;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
</script>
poi nell'html ho questo...
<input type='image' id='tarvisio' name='tarvisio' src='files/italia_picture2.png' border='0' width='55' height='20' onClick='bilanciaTarvisio()>
mentre non ho scritto niente di particolare nei tag select per indice e mese...