problemi jquery e IE

albx

Nuovo Utente
3 Dic 2010
1
0
0
Ciao a tutti, sto lavorando a un portale di assicurazioni e mi si sono presentati dei problemi di incompatibilità tra jquery e Internet Explorer. Ecco i codici javascript:
Codice:
<script type="text/javascript">
<!--
	$(document).ready(function(){
		$(".form").validate();
				
		$(".plan").hide();
		$(".fasce").hide();
		
		$('.datepicker').datepicker({
			dateFormat: 'dd/mm/yy',
// 			showOn: "button",
// 			buttonImage: "css/images/calendar.gif",
// 			buttonImageOnly: true
		});
		
		$("#policy_type").change(function(){
			if($("#policy_type").val() == 1){
				$(".plan").fadeIn();
				$(".fasce").fadeIn();
			}
			else{
				$(".plan").fadeOut();
				$(".fasce").fadeOut();
			}
		});
		
		$('#polizza3 fieldset').hide();
	    $('#0').show();
	    $('#menu a').click(function(){
	        $('#polizza3 fieldset').hide();
	        $($(this).attr('href')).show();
	    });
		
	});
		
	function selDestination(policy_type){
		$.get("select_destination.php", { policy: policy_type, requestItems: 'destinazioni'},
		 function(dataDestinazioni){
		    $("select[id='destination']").empty();
		    var options = '<option value="">Seleziona la destinazione</option>';
		    var arrayDestinazioni = dataDestinazioni.split( '||');
		    for (var i = 1; i < arrayDestinazioni.length; i++) {
		    	var destination = arrayDestinazioni[i].split( /,/);
		      	options += '<option value="' + destination[0] + '">' + destination[1] + '</option>';
		    }
		    $("select[id='destination']").html(options);
		});
	}
//-->
</script>

E questi invece sono i codici html/php a cui gli script fanno riferimento:
Codice:
<tr><td><form id="polizza1" name="polizza1" method="post" action="?page=acquista-polizza&amp;p=2" class="form">
		<table width="300" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="14" height="20" class="Stile1">&nbsp;</td>
                <td width="276" class="Stile1"><label for="product">Tipo di Prodotto*</label></td>
              </tr>
              <tr>
              	<td height="20">&nbsp;</td>
                <td><select name="product" class="Stile3 required" id="product">
                	<option value="multirisks">Multi Risks</option><td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                </tr>
              	
              <tr>
                <td width="14" height="20" class="Stile1">&nbsp;</td>
                <td width="276" class="Stile1"><label for="policy_type">Tipo di Polizza*</label></td>
              </tr>
              <tr>
                <td height="20">&nbsp;</td>
                <td><select name="policy_type" class="Stile3 required" id="policy_type" onchange="selDestination(this.value);">
                	<option value="">Seleziona il tipo di polizza</option>
<?php
	$query = "SELECT * FROM tipi_polizza";
	$result = mysql_query($query);
	
	while($row = mysql_fetch_array($result)){
		$id = $row["id"];
		$policy_type = $row["tipo_polizza"];
?>
					<option value="<?php echo $id; ?>"><?php echo $policy_type; ?></option>
<?php
	}
?>
                </select></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                </tr>
                
              <tr class="plan">
              	<td width="14" height="20" class="Stile1">&nbsp;</td>
                <td width="276" class="Stile1"><label for="plan">Coperture*</label></td>
              </tr>
              <tr class="plan">
              	<td height="20">&nbsp;</td>
              	<td><select name="plan" class="Stile3">
					<option value="">Scegli il livello di copertura</option>
					<option value="argento">Argento</option>
					<option value="oro">Oro</option>
					<option value="platino">Platinum</option>
				</select></td>
              </tr>
              <tr class="plan">
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                </tr>
              
              <tr>
                <td height="19">&nbsp;</td>
                <td class="Stile1"><label for="insured_type">Assicurati *</label></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td><select name="insured_type" class="Stile3 required" id="insured_type">
                  <option value="">Seleziona gli assicurati</option>
<?php
	$query = "SELECT * FROM tipi_assicurati";
	$result = mysql_query($query);
	
	while($row = mysql_fetch_array($result)){
		$id = $row["id"];
		$insured_type = $row["tipo_assicurato"];
?>
					<option value="<?php echo $id; ?>"><?php echo $insured_type; ?></option>
<?php
	}
?>
                </select></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                </tr>
              <tr>
                <td height="18">&nbsp;</td>
                <td class="Stile1"><label for="destination">Destinazione *</label></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td><select name="destination" class="Stile3 required" id="destination">
                  <option value="">Seleziona la Destinazione</option>
                </select>                </td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                </tr>
                
                <tr>
                <td height="19">&nbsp;</td>
                <td><table width="239" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="115" class="Stile1"><label for="inception">Decorrenza *</label></td>
                    <td width="13">&nbsp;</td>
                    <td width="115" class="Stile1"><label for="expiration">Scadenza *</label></td>
                  </tr>
                </table></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td><table width="239" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="115"><input name="inception" type="text" id="inception" size="10" class="required date datepicker" value="<?php echo $today ?>" /></td>
                    <td width="13">&nbsp;</td>
                    <td width="115"><input name="expiration" type="text" id="expiration" size="10" class="required date datepicker" value="<?php echo $today; ?>" /></td>
                  </tr>
                </table></td>
                </tr>
                <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                </tr>
                <tr>
                <td height="19">&nbsp;</td>
                <td><table width="239" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td width="115" class="Stile1"><label for="individual">Numero di Assicurati *</label></td>
                <td width="13">&nbsp;</td>
                <!--<td width="115" class="Stile1"><label for="trip_cost">Costo del viaggio <?php if($_POST["policy_type"] == 1){ echo "*"; } ?></label></td>-->
                </tr>
                </table></td>
                </tr>
                <tr>
              	<td height="19">&nbsp;</td>
                <td><table width="239" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td width="50"><label for="fascia1"><span class="Stile1">0 - 1 anni</span></label>
                <td width="13">&nbsp;</td>
                <td width="50"><label for="fascia2"><span class="Stile1">2 - 17 anni</span></label>
                <td width="13">&nbsp;</td>
                <td width="50"><label for="fascia3"><span class="Stile1">18 - 64 anni</span></label>
                </tr>
                <tr>
                <td width="50"><input name="fascia1" type="text" id="fascia1" size="3" value="0" class="required" /></td>
                <td width="13">&nbsp;</td>
                <td width="50"><input name="fascia2" type="text" id="fascia2" size="3" value="0" class="required" /></td>
                <td width="13">&nbsp;</td>
                <td width="50"><input name="fascia3" type="text" id="fascia3" size="3" value="1" class="required" /></td>
                <!--<td width="115"><input name="trip_cost" type="text" id="trip_cost" size="5" <?php if($_POST["policy_type"] == 1){ echo "class=\"required\""; } ?> /> <span class="Stile3">€</span></td>-->
                </tr>
				<tr class="fasce">
                <td width="50"><label for="fascia4"><span class="Stile1">65 - 74 anni</span></label>
                <td width="13">&nbsp;</td>
                <td width="50"><label for="fascia5"><span class="Stile1">75 - 84 anni</span></label>
                <td width="13">&nbsp;</td>
                <td width="50"><label for="fascia6"><span class="Stile1">+85 anni</span></label>
                </tr>
                <tr class="fasce">
                <td width="50"><input name="fascia4" type="text" id="fascia4" size="3" value="0" class="required" /></td>
                <td width="13">&nbsp;</td>
                <td width="50"><input name="fascia5" type="text" id="fascia5" size="3" value="0" class="required" /></td>
                <td width="13">&nbsp;</td>
                <td width="50"><input name="fascia6" type="text" id="fascia6" size="3" value="0" class="required" /></td>
                <!--<td width="115"><input name="trip_cost" type="text" id="trip_cost" size="5" <?php if($_POST["policy_type"] == 1){ echo "class=\"required\""; } ?> /> <span class="Stile3">€</span></td>-->
                </tr>
                </table></td>
                </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                </tr>
              
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" name="preventivo" id="preventivo" value="Calcola Preventivo" /></td>
                </tr>
             </table>
                </form></td></tr>

Praticamente su mozilla e chrome tutto funziona come dovrebbe, mentre su IE sembra che non legga proprio gli script javascript...qualcuno sa come risolvere il problema?? Io non so + dove andare a sbattere la testa....:confused:
 
Discussioni simili
Autore Titolo Forum Risposte Data
L Refresh include php con jquery problemi negli script dopo load jQuery 2
radioButton Problemi validazione con jQuery validation jQuery 0
P Problemi tra JQuery e IOS? jQuery 1
F Problemi con tabs jquery Javascript 2
S php problemi di funzione header usando la fuzione di jquery post PHP 4
S jquery plugin per vedere foto e video problemi aiuto jQuery 0
S problemi jquery ajax chiamare una pagina php Ajax 5
E problemi con jquery jQuery 0
N php problemi a visualizzare video PHP 3
T problemi con dati menu a tendina HTML e CSS 2
T problemi di connessione MySQL 2
M Upload immagine con javascript problemi con FormData() Javascript 1
F Problemi visualizzazione mappa Android studio Sviluppo app per Android 0
S Problemi Javascript + Aruba Javascript 2
A Problemi con move_uploaded_file PHP 7
M Problemi con la stampa dei valori in php PHP 1
L Problemi con il login PHP 2
L Problemi form Pagina php HTML e CSS 3
R Tutto su utf-8 ma ancora problemi con i caratteri speciali in mysql MySQL 1
Z problemi con foreach insert into PHP 10
B javascript per problemi con pdf e Safari Javascript 0
N Problemi kit videosorveglianza IP Cam e Videosorveglianza 0
M Problemi con creazione maschere Presentati al Forum 1
M Problemi con query a più tabelle PHP 3
R Problemi anomalo insermento in db PHP 9
S Problemi delle funzioni eliminate con PHP e MySQL PHP 4
S Problemi di un principiante PHP 3
M Problemi con blog Grav CMS (Content Management System) 0
F Problemi di visualizzazione di un sito su più browser WordPress 0
S Problemi di visualizzazione form contatti sito web HTML e CSS 2
S incoerenza di stampa. problemi con il magenta Photoshop 3
A problemi con paypall Java 1
A Problemi di accesso da remoto a Ipcam IP Cam e Videosorveglianza 5
michele81 [WordPress] problemi plug meteo api key WordPress 4
E Problemi in registrazione telecamere Dahua IP Cam e Videosorveglianza 6
S Problemi con modulo upload video php (help!) PHP 0
felino [Windows 8.1] Problemi con connessione WiFi Windows e Software 0
M [PHP] Problemi su inserimento array nel db PHP 7
E [PHP] problemi nuova riga con fwrite su piattaforma android PHP 5
M [PHP] Problemi di salvataggio su campo calcolato PHP 0
O [HTML] problemi con la regola "background-attachment: fixed" in EDGE HTML e CSS 0
M [PHP] Problemi con query unione PHP 11
M [PHP] Problemi con select PHP 6
Spown [WordPress] Problemi visualizzazione su più browser + voci menu in movimento WordPress 1
ANDREA20 [HTML] problemi con il footer HTML e CSS 1
D [MS Access] problemi con inserimento campo in una maschera MS Access 6
M [PHP] Problemi con il riconoscimento login. PHP 21
A [WordPress] problemi con xampp WordPress 2
M Problemi con database Apache/2.4.37 (Win32) OpenSSL/1.1.1a PHP/7.3.1 PHP 6
P Problemi comunicazioni Comunicazioni dallo Staff 8

Discussioni simili