[AJAX] Affichage sur internet explorer
bonjour ,
j'ai un probleme avec une page web que je suis entrain de coder actuellement
Au demarage de mon site voici la page qui se lance :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <html>
<head>
<script type="text/javascript" src="ongletValidation.js" ></script >
</head>
<body>
<br>
<br>
<form method ="POST">
<label> Selectionnez une tâche : </label>
<select name = "choixTache" id="choixTache" onclick='afficheTache(this.value)'>
<option value="saisieReporting">saisie reporting</option>
<option value="saisiesReporting">saisies autres reporting</option>
<option value="visualisationReporting">visualisation reporting</option>
<option value="modifLigne">Modifs infos ligne</option>
<option value="modifValidation">Modifs infos validation</option>
</select>
<div id ="sectionTache">
</div>
<div id ="sectionBoutons">
<input type="submit" name="report" id="report" value="Enregistrer">
<input type="submit" name="annule" id="annule" value="Annuler">
</div>
</form>
</body>
</html> |
quand je selectionne la tache saisies autres reporting en principe je devrai avoir avoir dans la balise div sectionTache la page php suivante
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <?php
print '<br><br>';
print"<label class =\"test\">Type de ligne :</label>";
print '    ';
print"<select name='typeLineSelect' id ='typeLine' onclick='lignesParValidation(this.value)'>";
print" <option value ='IA' selected >IA</option>";
print" <option value ='FINAL'>FINAL</option>";
print"</select>";
print '<br><br>';
print"<div id ='sectionLigneReporting'>";
print"</div>";
?> |
mais comble de bizarrerie rien ne s'affiche sous internet explorer pourtant sous firefox cela marche parfaitement, :cry: de plus je suis obligé d'utliser internet explorer pour ce travail
voici enfin le code javascript correspondant:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| var xmlhttp;
function afficheTache(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support HTTP Request");
return;
}
if(str=="saisiesReporting")
{
var url="typeLignesReporting.php";
xmlhttp.onreadystatechange=typeLignes;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
}
function typeLignes()
{
if (xmlhttp.readyState==4)
{
document.getElementById('sectionTache').innerHTML=xmlhttp.responseText;
}
}
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if (window.ActiveXObject)
{
// code for IE6, IE5
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
} |
si quelqu'un a une idee elle sera la bienvenue
j'utilise internet explorer 6