Rev 6094 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 13 | reyssat | 1 | Recharger la page. Jusqu'à 2 arguments.<ul> |
| 2 | <li>Argument 1: le texte à afficher sur le lien. |
||
| 3614 | bpr | 3 | </li><li>Argument 2 (facultatif): la position à aller (anchor). |
| 4 | </li></ul> |
||
| 13 | reyssat | 5 | <p> |
| 6096 | bpr | 6 | Le rechargement de la page est intéressant quand elle contient des \link{def}{variables aléatoires}. |
| 7 | Dans ce cas à chaque rechargement, la page rendue est différente. |
||
| 13 | reyssat | 8 | |
| 9 | \def{integer nn=random(1..1000)} |
||
| 6096 | bpr | 10 | Par exemple, nous avons défini la variable <span class="tt wims_code_words">\\nn</span> |
| 11 | comme étant un entier aléatoire entre 1 et 1000, par la commande |
||
| 12 | <span class="tt wims_code_words">\\def{integer nn=random(1..1000)}</span>. |
||
| 13 | Voici sa valeur actuelle : |
||
| 14 | <p class="wimscenter"><span class="tt wims_code_words">\\nn</span>=\nn.</p> |
||
| 13 | reyssat | 15 | Maintenant |
| 6096 | bpr | 16 | \reload{rechargez la page}{reload} (<span class="tt wims_code_words">\\reload{rechargez la page}</span>) |
| 17 | pour voir la valeur de <span class="tt">\\nn</span> changer. |
||
| 18 | <span class="small">(Le bouton ``recharger'' du navigateur n'aura pas cet effet.)</span> |