Bonjour,
Je me suis bêtement lancé dans une application sans contrôler au fur et à mesure l'évolution sur IE ... j'en fais maintenant les frais !
J'utilise Prototype 1.6 et j'ai un soucis avec un ajax.updater qui fonctionne correctement sous FF3 mais pas sous IE ...
Tout fonctionne correctement si je supprime l'updater (donc ma fonction est bien lancée).
NB : Le css est inclus directement pour plus de simplicité mais ne nous en occupons pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <!-- Exemple d'input : --> <p class="double"> <label for="f1-prix_parking" style="float: left; width: 100px; text-align: right;">Prix parking</label> <input type="" id="f1-prix_parking" value="" name="prix_parking" style="width:80px;" onchange="Total_package();"/> € </p> <!-- Submit final : --> <p> <input type="submit" value="" name="enregistrement" alt="Enregistrer un nouveau programme" style=" background : url(./images/Enregistrer.png) left top no-repeat; width:105px; height:22px; border:none; cursor:pointer; margin-left:30%;" onClick="enregistrerLot();"/> </p>
En vous remerciant par avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 function enregistrerLot() { var url = './ajax_ajouter_lot.php' var nomplan = document.getElementById('nom_plan').innerHTML; alert(nomplan); var myAjax = new Ajax.Updater( 'resultat', url, { method: 'post', parameters: { num_lot : $F('f1-num_lot'), type_lot : $F('f1-type_lot'), nom_plan : nomplan.innerHTML, taux_com_unite : $F('f1-taux_com_unite') }, } ); }
Partager