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
| <div id="statusInstallation" style="width:200px;height:130px;border:1px solid red;">
Etat :
</div>
<div id="retourPage" style="width:200px;height:130px;border:1px solid green">
Page :
</div>
<script>
executerInstallation = function() {
var myAjax = new Ajax.Updater(
"retourPage",
"traitement.php?action=blabla",
{
method: "post",
parameters: "token={TOKEN}"/*,
onComplete: function() {
document.location.href="maPage.php"
}*/
}
);
}
executerInstallation();
rafraichirStatusInstallation = function() {
rafraichirRegulierement("statusInstallation","statusInstallation.php");
}
rafraichirStatusInstallation(); |
Partager