mi spiegate perché questa semplice pagina non supera la validazione xhtml?
Gli errori vengono segnalati all'interno dello scriptcodice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento senza titolo</title> <script type="text/x-javascript"> function checkForm() { //Questa funzione verifica se le quantità inserite dall'utente siano corrette formRef=document.forms[0]; qtaCount=(formRef.qta.length>0 ? formRef.qta.length : 1); if(qtaCount==1) { valore=formRef.qta.value; if(isNaN(valore) || (valore==0)) { alert('La quantità della riga 1 non è valida!'); return false; } } for(k=0;k<qtaCount;k++) { valore=formRef.qta[k].value; if(isNaN(valore) || (valore==0)) {alert('La quantità della riga ' + (k+1) + ' non è valida!'); return false} } return true; } function ConfermaOrdine() { document.frmCarrello.action ="conferma.asp?sezione=ordine"; document.frmCarrello.submit(); } </script> </head> <body> </body> </html>![]()

Rispondi quotando
