Comment exécuter un code serveur depuis un timer en WebDev ?

Publié le par softdev

wb16
 
   

Comment executer un code serveur depuis un timer en WebDev ?

La fonction du W-Langage Timer n est effectivement disponible qu en code navigateur.
Cependant, dans le cas d une application dediee (maintenance, backOffice, ...) elle peut devenir necessaire. 

On peut alors utiliser la solution suivante :

Le navigateur simule à chaque pas de timer le clic sur un bouton d une page.
Exemple où à chaque seconde le code clic d un bouton est execute :

//1 - Code de chargement (Onload) de la page (Navigateur)
Timer("ProcTimer",100)

 
//2 - Procedure locale (Navigateur)
PROCEDURE ProcTimer()
PageValide("",BoutonTimer)
//3 - Code clic du bouton (Serveur)
Trace(HeureSys())

 

Source: Freedev

Publicité

Publié dans Webdev

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article
C
An important maid product will send any amount of maids as you ought to your home so you can get it wash and continue it wash. The maintaining services can be there to make your way of life easier. There have probably always been too several you will have to do within 24 hours, you mustn't have to fear of the home cleaning. You will be able to choose what number maids you prefer sent to your residence and the correct way often you prefer them shipped. Some many people hire maids coming out and even clean ones own homes one time. Other many people hire maids coming out once weekly to wash their property.
Répondre