Ciao a tutti,
Io sto modificando questo script:
http://www.ligurmarmi.com/writable ma non riesco a cambiare quella scritta che mi appare seleziona la regione. Io dovrei modificarla con " seleziona il fornitore", ma non so proprio dove mettere le mani, anche perchè nel database non esiste assolutamente "regione".
Questa è la pagina asp. Qualcuno di voi può aiutarmi? Grazie mille.
<xmp>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Select FAZZARI</title>
<script type="text/javascript" language="javascript">
//<![CDATA[
url = "http://www.ligurmarmi.com/writable/";
d = document;
preloadText = "Generazione lista...";
function caricaPagina(pagina,idLayer)
{
if (d.getElementById) {var x=(window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();}
if (x)
{
d.getElementById(idLayer).innerHTML = preloadText;
x.onreadystatechange = function()
{
if (x.readyState == 4 && x.status == 200)
{
el=d.getElementById(idLayer);el.innerHTML = x.responseText;
}
}
x.open("GET", url + pagina, true);
x.send(null);
}
}
function checkForm()
{
var ilForm = d.forms[0];
var err = true;
var lReg = document.getElementById("ErrorRegioni");
var lProv = document.getElementById("ErrorProvincie");
var lCom = document.getElementById("ErrorComuni");
lReg.style.display = "none";lProv.style.display= "none";lCom.style.display="none";
if (ilForm.regioni.value == "")
{
lReg.style.display = "block";lReg.innerHTML = "Seleziona il fornitore";
err = false;
}
if (ilForm.provincie.value == "")
{
lProv.style.display = "block";lProv.innerHTML= "Seleziona l'accessorio";
err = false;
}
if (ilForm.comuni.value == "")
{
lCom.style.display = "block";lCom.innerHTML= "Seleziona l'articolo";
err = false;
}
return err;
}
//]]>
</script>
</head>
<body onload="caricaPagina('dbcomuni.asp?type=regioni',' AHAH_regioni');">
<form name="secondaprova" method="post" action="risultato.asp" onsubmit="return checkForm()">
<div align="center">
<fieldset style="text-align:center;width:500px">
<legend>FAZZARI: formulazione preventivo</legend>
<div id="FormError"> </div>
<table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
<tr><td colspan="2" style="text-align:center"><div id="ErrorRegioni"> </div></td></tr>
<tr>
<td style="text-align:right;width:20%;font-weight:bold;">Fornitore</td>
<td style="text-align:left;width:80%"><div id="AHAH_regioni"><select name="regioni" style="width:100%"><option value=""></option></select></div></td>
</tr>
<tr><td colspan="2" style="text-align:center"><div id="ErrorProvincie"> </div></td></tr>
<tr>
<td style="text-align:right;width:20%;font-weight:bold;">Accessorio</td>
<td style="text-align:left;width:80%"><div id="AHAH_provincie"><select name="provincie" style="width:100%"><option value=""></option></select></div></td>
</tr>
<tr><td colspan="2" style="text-align:center"><div id="ErrorComuni"> </div></td></tr>
<tr>
<td style="text-align:right;width:20%;font-weight:bold;">Articolo&nbsp</td>
<td style="text-align:left;width:80%"><div id="AHAH_comuni"><select name="comuni" style="width:100%"><option value=""></option></select></div></td>
</tr>
<tr>
<td colspan="2" style="text-align:center;"><input type="submit" value="Conferma" /></td>
</tr>
</table>
</fieldset>
</div>
</form>
</body>
</html>

</xmp>



Opppsss... Chiedo scusa: un eerrore.. Volevo postare questo si asp...