PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Auto Refresh Page
Auto Refresh Page
Débuté par Ruan, 25 mai 2015 12:27 - 5 réponses
Membre enregistré
208 messages
Popularité : +1 (1 vote)
Posté le 25 mai 2015 - 12:27
Good Day

I hope I can get help on this. I have a live dashboard that shows on the map as new cals gets logged by clients. The get this to be 100% I need my page or the data the auto refresh every x amount of seconds. Looks like I cannot accomplish this in Webdev. I tried to use the timer on the global procedures but it cannot run every x seconds. I connot use timer on Webdev. Is there a way I can accomplish this please please.

Thanks

Ruan
Posté le 25 mai 2015 - 19:18
Hi Ruan

you need to use timer on the BROWSER side... from there, you can do an
executeprocess of a hidden (or not) button clic, and in the server code
of that button, you can call your global procedure

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Already there: WXShowroom.com, WXReplication (open source)
Coming soon: WXEDM (open source)
More information on http://www.fabriceharari.com


On 5/25/2015 4:27 AM, Ruan wrote:
Good Day

I hope I can get help on this. I have a live dashboard that shows on the
map as new cals gets logged by clients. The get this to be 100% I need
my page or the data the auto refresh every x amount of seconds. Looks
like I cannot accomplish this in Webdev. I tried to use the timer on the
global procedures but it cannot run every x seconds. I connot use timer
on Webdev. Is there a way I can accomplish this please please.

Thanks

Ruan
Membre enregistré
208 messages
Popularité : +1 (1 vote)
Posté le 25 mai 2015 - 21:58
Fabrice Harari wrote:
Hi Ruan

you need to use timer on the BROWSER side... from there, you can do an
executeprocess of a hidden (or not) button clic, and in the server code
of that button, you can call your global procedure

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Already there: WXShowroom.com, WXReplication (open source)
Coming soon: WXEDM (open source)
More information on http://www.fabriceharari.com


On 5/25/2015 4:27 AM, Ruan wrote:
Good Day

I hope I can get help on this. I have a live dashboard that shows on the
map as new cals gets logged by clients. The get this to be 100% I need
my page or the data the auto refresh every x amount of seconds. Looks
like I cannot accomplish this in Webdev. I tried to use the timer on the
global procedures but it cannot run every x seconds. I connot use timer
on Webdev. Is there a way I can accomplish this please please.

Thanks

Ruan


Hi Fabrice

Worked 100%

thanks
Membre enregistré
367 messages
Popularité : +17 (17 votes)
Posté le 29 mai 2015 - 16:20
Hi,
Timer is a "oldschool" solution .
Best practices : if the browser is HTML5 enable : http://www.w3schools.com/html/html5_serversentevents.asp
And you can find a "how to in webdev" here : http://blogs.pcsoft.fr/post.awp…
Use translate .....
Have fun to code

--
Dominique "QNX" Lecocq
IC Industrie - Binary Activity
Développement enfoui - M2M
Posté le 29 mai 2015 - 16:47
Hi Dominique,

very interesting... however, according to the links you just gave us, IE
does not support that technology... So not only old browsers wont accept
this, but ALL the IE users?

I'll stick with my timer for now :-)

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Already there: WXShowroom.com, WXReplication (open source)
Coming soon: WXEDM (open source)
More information on http://www.fabriceharari.com


On 5/29/2015 8:20 AM, Dominique Lecocq wrote:
Hi,
Timer is a "oldschool" solution .
Best practices : if the browser is HTML5 enable :
http://www.w3schools.com/html/html5_serversentevents.asp
And you can find a "how to in webdev" here :
http://blogs.pcsoft.fr/post.awp…

Use translate .....
Have fun to code

--
Dominique "QNX" Lecocq
IC Industrie - Binary Activity
Développement enfoui - M2M
Membre enregistré
367 messages
Popularité : +17 (17 votes)
Posté le 29 mai 2015 - 19:49
Hi Fabrice...
"Oldschool" is a joke, but i want to say : other technology exists.
I'm working since many years in M2M and IOT, I can say that many other ways are comming : MQTT, COAP, Websocket, and in the future, all browser must be able to integrate this technology....or died....
have a nice week end Fabrice...

--
Dominique "QNX" Lecocq
IC Industrie - Binary Activity
Développement enfoui - M2M