Voila mon problème, je charge un fichier php en ajax, ce fichier est dans un dijit/layout/AccordionContainer, je charge bien le fichier mais les paramètres Dojo ne sont pas pris en compte
voila un extrait de mon code
Et voila le code du fichier personneCentrale.php
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
23
24
25
26
27
28
29
30 <form id="formNode"> <input data-dojo-type="dijit/form/NumberSpinner" id="integerspinner2" value="0" data-dojo-props="smallDelta:1, constraints:{min:0,max:10,places:0}" name="someNumber" style="width:100px;"/> <button type="submit" data-dojo-Type="dijit.form.Button">valide</button> </form> <fieldset id="ident" style="border-color: #5D8BA2;width:505px;padding-top: 0;margin-top:20px;padding-left: 15px;padding-right: 15px ;height:'<?php echo $height . 'px'; ?>'"> <legend style="color: #5D8BA2;"><?php echo TXT_PERSONNECENTRALE; ?></legend> <div style="width: 467px; ;margin-top:15px;" id="resultDiv"> <div id="svrMessage" data-dojo-type="dijit/layout/AccordionContainer" style="height:'<?php echo $height;?>' " ></div> </div> <script> require(["dojo/dom", "dojo/on", "dojo/request", "dojo/dom-form"], function(dom, on, request, domForm){ var form = dom.byId('formNode'); // Attach the onsubmit event handler of the form on(form, "submit", function(evt){ var nb = dijit.byId('integerspinner2'); // prevent the page from navigating after submit evt.stopPropagation(); evt.preventDefault(); // Post the data to the server request.get("test/personneCentrale.php?nb="+nb+"", { // LE FICHIER CHARGE data: domForm.toObject("formNode") }).then(function(response){ dom.byId('svrMessage').innerHTML = response; }); }); } );</script>
Je ne comprend pas comment faire pour récupérer les paramètres dojo dans le dijit/layout/ContentPane
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
23
24
25
26
27
28
29
30
31 <?php for ($i=1;$i<=$nb;$i++){?> <div data-dojo-type="dijit/layout/ContentPane" title="<?php echo 'Personne '.$i; ?>" selected="true" > <table> <tr> <td> <label for="<?php echo 'nom'.$i;?>" class="perCentrale" ><?php echo TXT_NOM; ?></label> <input style="width: 210px" data-dojo-type="dijit/form/ValidationTextBox" name="<?php echo 'nom'.$i;?>" autocomplete="on" /> </td> </tr> <tr> <td> <label for="<?php echo 'prenom'.$i;?>" class="perCentrale" ><?php echo TXT_PRENOM; ?></label> <input style="width: 210px" data-dojo-type="dijit/form/ValidationTextBox" name="<?php echo 'prenom'.$i;?>" autocomplete="on" /> </td> </tr> <tr> <td><label for="<?php echo 'qualite'.$i;?>" class="perCentrale" ><?php echo TXT_QUALITE; ?></label> <?php $row = $manager->getList("SELECT idqualitedemandeuraca,libellequalitedemandeuraca FROM qualitedemandeuraca where libellequalitedemandeuraca != 'n/a';"); ?> <select name="<?php echo 'qualite'.$i;?>" id="<?php echo 'qualite'.$i;?>" data-dojo-type="dijit/form/FilteringSelect" style="width: 210px" data-dojo-props=" value: '', placeHolder: '<?php echo TXT_SELECTQUALITE ; ?>'" > <?php for($k=0;$k<count($row);$k++){ echo "<option value='$row[$k]['idqualitedemandeuraca']'>".$row[$k]['libellequalitedemandeuraca']."</option>"; } ?> </select> </td> </tr> etc.....
Merci par avance de votre aide
Partager