errato funzionamento script su IE 10 e con IE tester

  • Creatore Discussione Creatore Discussione ans66
  • Data di inizio Data di inizio

ans66

Utente Attivo
27 Ago 2011
158
0
16
ho provato il seguente codice html e javascript su diversi browser google chrome, firefox, IE fino a 9 e tutto funzionava bene. Poi ho rilevato un errore sul browser IE 10 e ho provato a verificarlo con IE tester che mi ha confermato che c'è qualche errore nel mio script. Purtroppo non sono riuscito a capire dove. Allego codice di seguito:

tabella form html:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Database</title>



<!-- InstanceEndEditable -->
<link href="./css/tabelle.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="MiaFunzione2.js"></script>
<script type="text/javascript" src="Funzionicasi.js"></script>
<script type="text/javascript" src="Funzionicasi2.js"></script>
<script type="text/javascript" src="Funzionicasi3.js"></script>
<script type="text/javascript" src="Funzionicasi4.js"></script>
<script type="text/javascript" src="Funzionicasi5.js"></script>
<script type="text/javascript" src="Funzionicasi6.js"></script>
<script type="text/javascript" src="Funzionicasi7.js"></script>
<script type="text/javascript" src="Funzionicasi8.js"></script>
<script type="text/javascript" src="Funzionicasi9.js"></script>
<script type="text/javascript" src="Funzionicasi10.js"></script>
<script type="text/javascript" src="Funzionicasi11.js"></script>
<script type="text/javascript" src="Funzionicasi12.js"></script>
</head>
<body>



<div class="contenitore_tabella">
    <table width="970" border="0">
    <form id="myForm" action="ruote_email.php" method="POST" >
          <thead>
      <tr>
              <th ><div align="right">Scegli la ruota che preferisci</div><th><div div align="left"> / Choose your favourite castor</div></th></th>
            </tr>
        </thead>
          <tbody>
            
              <!-- Combo -->
              <tr>
              <tr>
              <td >
              Applicazione/Application: 
              <select id="applicazione" name="applicazione"  onchange="myFunc2();">
              <option value="Seleziona"></option>
              <option value="Industriali">Industriali/Industrial</option>
              <option value="Collettivita">Collettivita/Institutional</option> 
              </td>
              
              <td >
              Volvenza/Bearing: 
              <select id="volvenza" name="Volvenza">
              <option  </option>
              </td>
              
        </tr>   
              <td >
              <div >Come Ruota/How is the wheel?:
              <select id="comeRuota" name="comeRuota" onchange="myFunc2();">
              <option value="Seleziona"></option>
              <option value="SoloRuota">Solo Ruota/Loose Wheel</option>
              <option value="RuotaMontata">Ruota montata/Castor</option> 
              <option value="SoloSupporto">Solo supporto/Loose Housing</option>
              </td>
              
              <td>
              <div> Ruota/Wheel?: <select id="TipoRuota" name="TipoRuota"></div>
              <option  </option>
              </td>
              
       </tr>
       
       <tr>
              <td height="50">
               Diametro/Diameter:
                <select id="Diametro" name="Diametro">
               <option  </option>
               </td>
              
              <td height="50">
              Portata/Carrying Capacity:
              <select id="Portata" name="Portata">
               <option selected=""></option>
              <option>  </option>
              </td>
              
        </tr>
        <tr>
              
          
              <td height="50">
              Supporto/Housing:  <select id="TipoSupporto" name="TipoSupporto">
               <option selected=""></option>
              <option>  </option> 
              </td>
              
               
              
              <td >
              <div >Serie Supporti/Housing Series:
              <select id="SerieSupporti" name="SerieSupporti"></div>
              <option  </option>
              </td>
              
        </tr>
        <tr>
              <td height="50">
               Tipo Lamiera/Metal Sheet:
                <select id="TipoLamiera" name="TipoLamiera">
               <option  </option>
              </td>
              
              <td height="50">
              
              </td>
              
        </tr>      
        <tr>
              <td >
              <div > Tipi Pavimenti/Which Floor?: 
              <select id="TipoPavimenti" name="TipoPavimenti"></div>
              <option selected=""></option>
              <option  </option>
              </td>
              
              <td height="50">
              <div align="right"><input type="submit" value="Invia/Submit" /></div>
              </td>
              
        </tr>           
            
          </tbody>
       
       </form>
        </table>
        
  <p>&nbsp;</p>
</div>

    
</body>
</html>

javascript di seguito MiaFunzione2.js:

Codice:
// JavaScript Document
function myFunc2()
{

var varDaapplicazione = document.getElementById('applicazione');
var varDacomeRuota = document.getElementById('comeRuota');

var varSelapplicazione=varDaapplicazione.options[varDaapplicazione.selectedIndex].value;
var varSelcomeRuota=varDacomeRuota.options[varDacomeRuota.selectedIndex].value;

varDueVar=varSelapplicazione+"-"+varSelcomeRuota;


switch (varDueVar) {

case "Seleziona-Seleziona":
caso1();
 break;

case "Seleziona-SoloRuota":
caso2();
break;

case "Seleziona-RuotaMontata":
caso3();
break;

case "Seleziona-SoloSupporto":
caso4();
break;

case "Industriali-Seleziona":
caso5();        
break;

case "Collettivita-Seleziona":
caso6();        
break;

case "Industriali-SoloRuota":
caso7();
break;

case "Industriali-RuotaMontata":
caso8();
break;

case "Industriali-SoloSupporto":
caso9();
break;

case "Collettivita-SoloRuota":
caso10(); 
break;

case "Collettivita-RuotaMontata":
caso11();
break;

case "Collettivita-SoloSupporto":
caso12();
break;


}
 


}

Funzionicasi.js:

Codice:
function caso1() {


//acquisisci l'elemento selezionato
var varDiametro = document.getElementById('Diametro');
var varTipoSupporto = document.getElementById('TipoSupporto');
var varTipoLamiera = document.getElementById('TipoLamiera');
var varTipoPavimenti = document.getElementById('TipoPavimenti');
var varVolvenza = document.getElementById('volvenza');
var varTipoRuota = document.getElementById('TipoRuota');
var varPotata = document.getElementById('Portata');
var varSerieSupporti = document.getElementById('SerieSupporti');



// azzero le option            
varDiametro.options.length = 1;
varTipoSupporto.options.length = 1;
varTipoLamiera.options.length = 1;
varTipoPavimenti.options.length = 1;
varVolvenza.options.length = 1;
varTipoRuota.options.length = 1;
varPotata.options.length = 1;
varSerieSupporti.options.length = 1;


}

Funzionicasi2.js

Codice:
// JavaScript Document
function caso2(){

//acquisisci l'elemento selezionato
var varDiametro = document.getElementById('Diametro');

// azzero le option            
varDiametro.options.length = 1;

// aggiungo le options per Diametro
    var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varDiametro.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "30 - 40 mm";
        option1.value = "30to40mm";
        varDiametro.options.add(option1);

var option2 = document.createElement("option");
        option2.text = "40 - 50 mm";
        option2.value = "40to50mm";
        varDiametro.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "50 - 60 mm";
        option3.value = "50to60mm";
        varDiametro.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "60 - 80 mm";
        option4.value = "60to80mm";
        varDiametro.options.add(option4);

var option5 = document.createElement("option");
        option5.text = "80 - 100 mm";
        option5.value = "80to100mm";
        varDiametro.options.add(option5);

var option6 = document.createElement("option");
        option6.text = "100 - 125 mm";
        option6.value = "100to125mm";
        varDiametro.options.add(option6);
        
var option7 = document.createElement("option");
        option7.text = "125 - 140 mm";
        option7.value = "125to140mm";
        varDiametro.options.add(option7);
        
var option8 = document.createElement("option");
        option8.text = "140 - 150 mm";
        option8.value = "140to150mm";
        varDiametro.options.add(option8); 

var option9 = document.createElement("option");
        option9.text = "150 - 160 mm";
        option9.value = "150to160mm";
        varDiametro.options.add(option9);

var option10 = document.createElement("option");
        option10.text = "160 - 180 mm";
        option10.value = "160to180mm";
        varDiametro.options.add(option10); 
        
var option11 = document.createElement("option");
        option11.text = "180 - 200 mm";
        option11.value = "180to200mm";
        varDiametro.options.add(option11); 

var option12 = document.createElement("option");
        option12.text = "200 - 225 mm";
        option12.value = "200to225mm";
        varDiametro.options.add(option12);
        
var option13 = document.createElement("option");
        option13.text = "225 - 250 mm";
        option13.value = "225to250mm";
        varDiametro.options.add(option13); 
        
var option14 = document.createElement("option");
        option14.text = "250 - 280 mm";
        option14.value = "250to280mm";
        varDiametro.options.add(option14); 


//acquisisci l'elemento selezionato
var varTipoPavimenti = document.getElementById('TipoPavimenti');

// azzero le option            
varTipoPavimenti.options.length = 1;

// aggiungo le options per TipoPavimenti
    var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varTipoPavimenti.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "Piastrelle/Tile";
        option1.value = "PavimentoPiastrelle";
        varTipoPavimenti.options.add(option1);

var option2 = document.createElement("option");
        option2.text = "Asfalto/Asphalt";
        option2.value = "PavimentoAsfalto";
        varTipoPavimenti.options.add(option2);  
        
var option3 = document.createElement("option");
        option3.text = "Cemento/Resin Cement";
        option3.value = "PavimentoCemento";
        varTipoPavimenti.options.add(option3);
        
var option4 = document.createElement("option");
        option3.text = "Sterrato/Unfinished";
        option3.value = "PavimentoSterrato";
        varTipoPavimenti.options.add(option3);
        
var option5 = document.createElement("option");
        option5.text = "Grigliato/Metal Grid";
        option5.value = "PavimentoGrigliato";
        varTipoPavimenti.options.add(option5);
        
var option6 = document.createElement("option");
        option6.text = "Con trucioli/With swarf";
        option6.value = "PavimentoTruccioli";
        varTipoPavimenti.options.add(option6);
        
var option7 = document.createElement("option");
        option7.text = "Tutti Pavimenti/All Floors";
        option7.value = "TuttiPavimenti";
        varTipoPavimenti.options.add(option7);
        
//acquisisci l'elemento selezionato        
var varVolvenza = document.getElementById('volvenza');

// azzero le option                    
varVolvenza.options.length = 1;
        
// aggiungo le options per varVolvenza
var Option0 = document.createElement("option");
        Option0.text = "";
        Option0.value = "0";
        varVolvenza.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "Boccola/Plain Bearing";
        option1.value = "boccola";
        varVolvenza.options.add(option1);
        
var option2 = document.createElement("option");
        option2.text = "Rulli/Roller Bearing";
        option2.value = "rulli";
        varVolvenza.options.add(option2);

var option3 = document.createElement("option");
        option3.text = "Rulli Inox/SS Roller Bearing";
        option3.value = "rulliinox";
        varVolvenza.options.add(option3);        

var option4 = document.createElement("option");
        option4.text = "Cuscinetti/Ball Bearing";
        option4.value = "cuscinetti";
        varVolvenza.options.add(option4);

//acquisisci l'elemento selezionato                
var varTipoRuota = document.getElementById('TipoRuota');

// azzero le option                    
varTipoRuota.options.length = 1;

// aggiungo le options per TipoRuota
var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varTipoRuota.options.add(Option0);
    
var option1 = document.createElement("option");
        option1.text = "Polipropilene/PP wheels";
        option1.value = "RuotaPP";
        varTipoRuota.options.add(option1);
    
var option2 = document.createElement("option");
        option2.text = "Anello in Gomma/Rubber Tyre";
        option2.value = "AnelloGomma";
        varTipoRuota.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "Anello in Gomma Sint/Sint. Rubber Tyre";
        option3.value = "AnelloGommaSint";
        varTipoRuota.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "Conduttive/Conductive";
        option4.value = "RuoteBarra5";
        varTipoRuota.options.add(option4);

var option5 = document.createElement("option");
        option5.text = "Alluminio+Gomma El./Aluminium+El. Rubber tyre";
        option5.value = "AnelloGommaElast";
        varTipoRuota.options.add(option5);

var option6 = document.createElement("option");
        option6.text = "Pneumatiche/Pneumatic";
        option6.value = "RuotePneumatiche";
        varTipoRuota.options.add(option6);
        
var option7 = document.createElement("option");
        option7.text = "Carriola/Wheelbarrow";
        option7.value = "RuoteCarriola";
        varTipoRuota.options.add(option7);

var option8 = document.createElement("option");
        option8.text = "Nylon/PA wheels";
        option8.value = "RuotaNylon";
        varTipoRuota.options.add(option8);

var option9 = document.createElement("option");
        option9.text = "Alta Temperatura/High Temperature";
        option9.value = "RuotaAT";
        varTipoRuota.options.add(option9);
        
var option10 = document.createElement("option");
        option10.text = "Nylon+Poliuretano/PA+PU wheels";
        option810value = "RuotaPAPU";
        varTipoRuota.options.add(option10);

var option11 = document.createElement("option");
        option11.text = "Alluminio+Poliuretano/Aluminuim+Pol. Tyre";
        option11.value = "RuotaAVC";
        varTipoRuota.options.add(option11);
        
var option12 = document.createElement("option");
        option12.text = "Ghisa+Poliuretano/Cast iron+Pol. Tyre";
        option12.value = "RuotaAG";
        varTipoRuota.options.add(option12);
        
//acquisisci l'elemento selezionato                
var varPotata = document.getElementById('Portata');

// azzero le option                    
varPotata.options.length = 1;

// aggiungo le options per Portata

var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varTipoRuota.options.add(Option0); 

var option1 = document.createElement("option");
        option1.text = "20 - 35 kg";
        option1.value = "20to35kg";
        varPotata.options.add(option1);
        
var option2 = document.createElement("option");
        option2.text = "35 - 40 kg";
        option2.value = "35to40kg";
        varPotata.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "40 - 50 kg";
        option3.value = "40to50kg";
        varPotata.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "50 - 60 kg";
        option4.value = "50to60kg";
        varPotata.options.add(option4);
        
var option5 = document.createElement("option");
        option5.text = "60 - 80 kg";
        option5.value = "60to80kg";
        varPotata.options.add(option5);

var option6 = document.createElement("option");
        option6.text = "80 - 130 kg";
        option6.value = "80to130kg";
        varPotata.options.add(option6);  
        
var option7 = document.createElement("option");
        option7.text = "130 - 160 kg";
        option7.value = "130to160kg";
        varPotata.options.add(option7);    

var option8 = document.createElement("option");
        option8.text = "160 - 200 kg";
        option8.value = "160to200kg";
        varPotata.options.add(option8);
        
var option9 = document.createElement("option");
        option9.text = "200 - 300 kg";
        option9.value = "200to300kg";
        varPotata.options.add(option9);
        
var option10 = document.createElement("option");
        option10.text = "300 - 450 kg";
        option10.value = "300to450kg";
        varPotata.options.add(option10);
        
var option11 = document.createElement("option");
        option11.text = "450 - 700 kg";
        option11.value = "450to700kg";
        varPotata.options.add(option11);
        
var option12 = document.createElement("option");
        option12.text = "700 - 1000 kg";
        option12.value = "700to1000kg";
        varPotata.options.add(option12);
        
// acquisisci tutti gli elementi da azzerare
var varTipoSupporto = document.getElementById('TipoSupporto');
var varTipoLamiera = document.getElementById('TipoLamiera');
var varSerieSupporti = document.getElementById('SerieSupporti');

// azzero gli elementi
varTipoSupporto.options.length = 1;
varTipoLamiera.options.length = 1;
varSerieSupporti.options.length = 1;

}

Funzionicasi3.js:

Codice:
// JavaScript Document
function caso3(){

//acquisisci l'elemento selezionato
var varDiametro = document.getElementById('Diametro');

// azzero le option            
varDiametro.options.length = 1;

// aggiungo le options per Diametro
    var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varDiametro.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "30 - 40 mm";
        option1.value = "30to40mm";
        varDiametro.options.add(option1);

var option2 = document.createElement("option");
        option2.text = "40 - 50 mm";
        option2.value = "40to50mm";
        varDiametro.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "50 - 60 mm";
        option3.value = "50to60mm";
        varDiametro.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "60 - 80 mm";
        option4.value = "60to80mm";
        varDiametro.options.add(option4);

var option5 = document.createElement("option");
        option5.text = "80 - 100 mm";
        option5.value = "80to100mm";
        varDiametro.options.add(option5);

var option6 = document.createElement("option");
        option6.text = "100 - 125 mm";
        option6.value = "100to125mm";
        varDiametro.options.add(option6);
        
var option7 = document.createElement("option");
        option7.text = "125 - 140 mm";
        option7.value = "125to140mm";
        varDiametro.options.add(option7);
        
var option8 = document.createElement("option");
        option8.text = "140 - 150 mm";
        option8.value = "140to150mm";
        varDiametro.options.add(option8); 

var option9 = document.createElement("option");
        option9.text = "150 - 160 mm";
        option9.value = "150to160mm";
        varDiametro.options.add(option9);

var option10 = document.createElement("option");
        option10.text = "160 - 180 mm";
        option10.value = "160to180mm";
        varDiametro.options.add(option10); 
        
var option11 = document.createElement("option");
        option11.text = "180 - 200 mm";
        option11.value = "180to200mm";
        varDiametro.options.add(option11); 

var option12 = document.createElement("option");
        option12.text = "200 - 225 mm";
        option12.value = "200to225mm";
        varDiametro.options.add(option12);
        
var option13 = document.createElement("option");
        option13.text = "225 - 250 mm";
        option13.value = "225to250mm";
        varDiametro.options.add(option13); 
        
var option14 = document.createElement("option");
        option14.text = "250 - 280 mm";
        option14.value = "250to280mm";
        varDiametro.options.add(option14); 

//acquisisci l'elemento selezionato
var varTipoPavimenti = document.getElementById('TipoPavimenti');

// azzero le option            
varTipoPavimenti.options.length = 1;

// aggiungo le options per TipoPavimenti
    var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varTipoPavimenti.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "Piastrelle/Tile";
        option1.value = "PavimentoPiastrelle";
        varTipoPavimenti.options.add(option1);

var option2 = document.createElement("option");
        option2.text = "Asfalto/Asphalt";
        option2.value = "PavimentoAsfalto";
        varTipoPavimenti.options.add(option2);  
        
var option3 = document.createElement("option");
        option3.text = "Cemento/Resin Cement";
        option3.value = "PavimentoCemento";
        varTipoPavimenti.options.add(option3);
        
var option4 = document.createElement("option");
        option3.text = "Sterrato/Unfinished";
        option3.value = "PavimentoSterrato";
        varTipoPavimenti.options.add(option3);
        
var option5 = document.createElement("option");
        option5.text = "Grigliato/Metal Grid";
        option5.value = "PavimentoGrigliato";
        varTipoPavimenti.options.add(option5);
        
var option6 = document.createElement("option");
        option6.text = "Con trucioli/With swarf";
        option6.value = "PavimentoTruccioli";
        varTipoPavimenti.options.add(option6);
        
var option7 = document.createElement("option");
        option7.text = "Tutti Pavimenti/All Floors";
        option7.value = "TuttiPavimenti";
        varTipoPavimenti.options.add(option7);
        
//acquisisci l'elemento selezionato        
var varVolvenza = document.getElementById('volvenza');

// azzero le option                    
varVolvenza.options.length = 1;
        
// aggiungo le options per varVolvenza
var Option0 = document.createElement("option");
        Option0.text = "";
        Option0.value = "0";
        varVolvenza.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "Boccola/Plain Bearing";
        option1.value = "boccola";
        varVolvenza.options.add(option1);
        
var option2 = document.createElement("option");
        option2.text = "Rulli/Roller Bearing";
        option2.value = "rulli";
        varVolvenza.options.add(option2);

var option3 = document.createElement("option");
        option3.text = "Rulli Inox/SS Roller Bearing";
        option3.value = "rulliinox";
        varVolvenza.options.add(option3);        

var option4 = document.createElement("option");
        option4.text = "Cuscinetti/Ball Bearing";
        option4.value = "cuscinetti";
        varVolvenza.options.add(option4);

//acquisisci l'elemento selezionato                
var varTipoRuota = document.getElementById('TipoRuota');

// azzero le option                    
varTipoRuota.options.length = 1;

// aggiungo le options per TipoRuota
var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varTipoRuota.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "Polipropilene/PP wheels";
        option1.value = "RuotaPP";
        varTipoRuota.options.add(option1);
    
var option2 = document.createElement("option");
        option2.text = "Anello in Gomma/Rubber Tyre";
        option2.value = "AnelloGomma";
        varTipoRuota.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "Anello in Gomma Sint/Sint. Rubber Tyre";
        option3.value = "AnelloGommaSint";
        varTipoRuota.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "Conduttive/Conductive";
        option4.value = "RuoteBarra5";
        varTipoRuota.options.add(option4);

var option5 = document.createElement("option");
        option5.text = "Alluminio+Gomma El./Aluminium+El. Rubber tyre";
        option5.value = "AnelloGommaElast";
        varTipoRuota.options.add(option5);

var option6 = document.createElement("option");
        option6.text = "Pneumatiche/Pneumatic";
        option6.value = "RuotePneumatiche";
        varTipoRuota.options.add(option6);
        
var option7 = document.createElement("option");
        option7.text = "Carriola/Wheelbarrow";
        option7.value = "RuoteCarriola";
        varTipoRuota.options.add(option7);

var option8 = document.createElement("option");
        option8.text = "Nylon/PA wheels";
        option8.value = "RuotaNylon";
        varTipoRuota.options.add(option8);

var option9 = document.createElement("option");
        option9.text = "Alta Temperatura/High Temperature";
        option9.value = "RuotaAT";
        varTipoRuota.options.add(option9);
        
var option10 = document.createElement("option");
        option10.text = "Nylon+Poliuretano/PA+PU wheels";
        option810value = "RuotaPAPU";
        varTipoRuota.options.add(option10);

var option11 = document.createElement("option");
        option11.text = "Alluminio+Poliuretano/Aluminuim+Pol. Tyre";
        option11.value = "RuotaAVC";
        varTipoRuota.options.add(option11);
        
var option12 = document.createElement("option");
        option12.text = "Ghisa+Poliuretano/Cast iron+Pol. Tyre";
        option12.value = "RuotaAG";
        varTipoRuota.options.add(option12);
        
//acquisisci l'elemento selezionato                
var varPotata = document.getElementById('Portata');

// azzero le option                    
varPotata.options.length = 1;

// aggiungo le options per Portata

var Option0 = document.createElement("option");
    Option0.text = "";
    Option0.value = "0";
    varTipoRuota.options.add(Option0); 

var option1 = document.createElement("option");
        option1.text = "20 - 35 kg";
        option1.value = "20to35kg";
        varPotata.options.add(option1);
        
var option2 = document.createElement("option");
        option2.text = "35 - 40 kg";
        option2.value = "35to40kg";
        varPotata.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "40 - 50 kg";
        option3.value = "40to50kg";
        varPotata.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "50 - 60 kg";
        option4.value = "50to60kg";
        varPotata.options.add(option4);
        
var option5 = document.createElement("option");
        option5.text = "60 - 80 kg";
        option5.value = "60to80kg";
        varPotata.options.add(option5);

var option6 = document.createElement("option");
        option6.text = "80 - 130 kg";
        option6.value = "80to130kg";
        varPotata.options.add(option6);  
        
var option7 = document.createElement("option");
        option7.text = "130 - 160 kg";
        option7.value = "130to160kg";
        varPotata.options.add(option7);    

var option8 = document.createElement("option");
        option8.text = "160 - 200 kg";
        option8.value = "160to200kg";
        varPotata.options.add(option8);
        
var option9 = document.createElement("option");
        option9.text = "200 - 300 kg";
        option9.value = "200to300kg";
        varPotata.options.add(option9);
        
var option10 = document.createElement("option");
        option10.text = "300 - 450 kg";
        option10.value = "300to450kg";
        varPotata.options.add(option10);
        
var option11 = document.createElement("option");
        option11.text = "450 - 700 kg";
        option11.value = "450to700kg";
        varPotata.options.add(option11);
        
var option12 = document.createElement("option");
        option12.text = "700 - 1000 kg";
        option12.value = "700to1000kg";
        varPotata.options.add(option12);        

//acquisisci l'elemento selezionato                        
var varTipoSupporto = document.getElementById('TipoSupporto');        

// azzero le option                    
varTipoSupporto.options.length = 1;
        
// aggiungo le options per TipoSupporto
var Option0 = document.createElement("option");
        Option0.text = "";
        Option0.value = "0";
        varTipoSupporto.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "Piastra Girevole/Swivel Plate";
        option1.value = "PiastraGirevole";
        varTipoSupporto.options.add(option1);

var option2 = document.createElement("option");
        option2.text = "Piastra Girevole freno/Swivel Plate Braked";
        option2.value = "PiastraGirevoleFr";
        varTipoSupporto.options.add(option2);   
             
var option3 = document.createElement("option");
        option3.text = "Piastra Girevole freno ruota/Swivel Plate wheel Braked";
        option3.value = "PiastraGirevoleFrRuota";
        varTipoSupporto.options.add(option3); 
        
var option4 = document.createElement("option");
        option4.text = "Piastra Fissa/Fixed Plate";
        option4.value = "PiastraFissa";
        varTipoSupporto.options.add(option4);
        
var option5 = document.createElement("option");
        option5.text = "Foro Girevole/Swivel Bolt Hole";
        option5.value = "ForoGirevole";
        varTipoSupporto.options.add(option5); 
        
var option6 = document.createElement("option");
        option6.text = "Foro Girevole freno/Swivel Bolt Hole braked";
        option6.value = "ForoGirevoleFreno";
        varTipoSupporto.options.add(option6);
        
var option7 = document.createElement("option");
        option7.text = "Foro Girevole freno ruota/Swivel Bolt Hole wheel braked";
        option7.value = "ForoGirevoleFrenoRuota";
        varTipoSupporto.options.add(option7);
        
var option8 = document.createElement("option");
        option8.text = "Fisso Foro/Fixed Bolt Hole";
        option8.value = "FissoForo";
        varTipoSupporto.options.add(option8);
        
var option9 = document.createElement("option");
        option9.text = "Codolo Girevole/Swivel Stem Fitting";
        option9.value = "CodoloGirevole";
        varTipoSupporto.options.add(option9);
        
var option10 = document.createElement("option");
        option10.text = "Codolo Girevole freno/Swivel braked Stem Fitting";
        option10.value = "CodoloGirevoleFreno";
        varTipoSupporto.options.add(option10);
        
var option11 = document.createElement("option");
        option11.text = "Codolo Gir. freno ruota/Swivel wheel braked Stem Fitting";
        option11.value = "CodoloGirevoleFrenoRuota";
        varTipoSupporto.options.add(option11);
        
var option12 = document.createElement("option");
        option12.text = "Fisso Codolo/Fixed Stem Fitting";
        option12.value = "FissoCodolo";
        varTipoSupporto.options.add(option12);

var option13 = document.createElement("option");
        option13.text = "Espansione/Expander";
        option13.value = "Espansione";
        varTipoSupporto.options.add(option13);        

var option14 = document.createElement("option");
        option14.text = "Espansione freno/Expander total braked";
        option14.value = "EspansioneFreno";
        varTipoSupporto.options.add(option14);

var option15 = document.createElement("option");
        option15.text = "Espansione freno ruota/Expander wheel braked";
        option15.value = "EspansioneFrenoRuota";
        varTipoSupporto.options.add(option15);
        
//acquisisci l'elemento selezionato                        
var varTipoLamiera = document.getElementById('TipoLamiera');

// azzero le option            
varTipoLamiera.options.length = 1;

// aggiungo le options per TipoLamiera
var Option0 = document.createElement("option");
        Option0.text = "";
        Option0.value = "0";
        varTipoLamiera.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "zincata/zinc";
        option1.value = "Lamierazincata";
        varTipoLamiera.options.add(option1);
        
var option2 = document.createElement("option");
        option2.text = "cromata/cromed";
        option2.value = "Lamieracromata";
        varTipoLamiera.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "ottonata/brass";
        option3.value = "Lamieraottonata";
        varTipoLamiera.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "inox/SS";
        option4.value = "Lamierainox";
        varTipoLamiera.options.add(option4);
        

//acquisisci l'elemento selezionato        
var varSerieSupporti = document.getElementById('SerieSupporti');

// azzero le option            
varSerieSupporti.options.length = 1;

// aggiungo le options per SerieSupporti
var Option0 = document.createElement("option");
        Option0.text = "";
        Option0.value = "0";
        varSerieSupporti.options.add(Option0);

var option1 = document.createElement("option");
        option1.text = "Serie Forcella/Forcella Housings";
        option1.value = "Forcella";
        varSerieSupporti.options.add(option1);
        
var option2 = document.createElement("option");
        option2.text = "Serie Transport/Transport Housings";
        option2.value = "Transport";
        varSerieSupporti.options.add(option2);
        
var option3 = document.createElement("option");
        option3.text = "Serie Market/Market Housings";
        option3.value = "Market";
        varSerieSupporti.options.add(option3);
        
var option4 = document.createElement("option");
        option4.text = "Serie Xline/Xline Housings";
        option4.value = "Xline";
        varSerieSupporti.options.add(option4);
        
var option5 = document.createElement("option");
        option5.text = "Serie Eline/Eline Housings";
        option5.value = "Eline";
        varSerieSupporti.options.add(option5); 
        
var option6 = document.createElement("option");
        option6.text = "Serie Pesante/Heavy Duty Housings";
        option6.value = "Pesante";
        varSerieSupporti.options.add(option6); 
        
var option7 = document.createElement("option");
        option7.text = "Serie Pneumatiche/Pneumatic Housings";
        option7.value = "Pneumatiche";
        varSerieSupporti.options.add(option7);
        
var option8 = document.createElement("option");
        option8.text = "Tutte i supporti/All Housings";
        option8.value = "TutteSerie";
        varSerieSupporti.options.add(option8);     


  
}



Gli altri script, fino al 12, seguono la stessa logica.

L'errore che ho su IE 10 e con IE tester è su combo Ruota, Portata e Serie supporti che non vengono riempiti con dati.

Grazie tante per qualsiasi aiuto.:o:o
 
esiste un programma di debugging script specifico per la piattaforma IE 10? Meglio sarebbe se potessi avere le segnalazioni degli errori e possibili soluzioni. Grazie. Purtroppo dopo tante ricerche non ho trovato nulla di specifico;):D:fonzie:
 
Ciao, dalla scheda avanzate delle opzioni internet di IE puoi attivare il debugging degli script
lo hai online?
 
Ciao Ciric,

Grazie per la risposta. Purtroppo non ho la versione di IE 10 incriminata ma ho visto l'errore su un altro computer. Comunque proverò ad attivare il debugging dello script. Sto scaricando l'esempio on line ma ci vorrà un po di tempo. Ti mando il link appena possibile. Grazie per l'aiuto.:o
 
Ciao Ciric,

Grazie per la risposta. Purtroppo non ho la versione di IE 10 incriminata ma ho visto l'errore su un altro computer. Comunque proverò ad attivare il debugging dello script. Sto scaricando l'esempio on line ma ci vorrà un po di tempo. Ti mando il link appena possibile. Grazie per l'aiuto.:o

link: http://www.cebora.it/ruote/pp1/cercaruota.php
 
gli errori li segnala anche firefox
"NetworkError: 404 Not Found - http://www.cebora.it/ruote/pp1/Scripts/swfobject_modified.js"
"NetworkError: 404 Not Found - http://www.cebora.it/ruote/pp1/js/picbox.js"
ReferenceError: swfobject is not defined
swfobject.registerObject("FlashID");
 
hai ragione quell'errore l'ho già tolto in locale dove ho la versione più aggiornata. Il problema che rilevo è solo con la versione IE 10 dove i combo Ruota, Portata e Serie supporti non vengono riempiti. Con IE 9 e 11 non rilevo lo stesso errore e quindi non capisco davvero il motivo. Secondo te è possibile ottenere lo stesso tipo di risultato utilizzando solo PHP? Grazie davvero.:cool:
 

Discussioni simili