PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Auto refresh Page
Auto refresh Page
Iniciado por Ruan, 19,nov. 2014 13:01 - 3 respuestas
Miembro registrado
209 mensajes
Popularité : +1 (1 vote)
Publicado el 19,noviembre 2014 - 13:01
Good day

I have created a page that's a dashboard. All the values gets updated from my database. How can I make the page refresh every x amount of minutes or seconds? I know that in Windev I used the timer but no Idea how to do this in Webdev..

Thanks
Publicado el 19,noviembre 2014 - 15:24
Hi Ruan

Nearly the exact same way. You create a timer in browser code, and when
it fires, you run your refresh code

Best regards

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

NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on http://www.fabriceharari.com


On 11/19/2014 7:01 AM, Ruan wrote:
Good day

I have created a page that's a dashboard. All the values gets updated
from my database. How can I make the page refresh every x amount of
minutes or seconds? I know that in Windev I used the timer but no Idea
how to do this in Webdev..

Thanks
Miembro registrado
209 mensajes
Popularité : +1 (1 vote)
Publicado el 20,noviembre 2014 - 11:03
Fabrice Harari wrote:
Hi Ruan

Nearly the exact same way. You create a timer in browser code, and when
it fires, you run your refresh code

Best regards

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

NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on http://www.fabriceharari.com


On 11/19/2014 7:01 AM, Ruan wrote:
Good day

I have created a page that's a dashboard. All the values gets updated
from my database. How can I make the page refresh every x amount of
minutes or seconds? I know that in Windev I used the timer but no Idea
how to do this in Webdev..

Thanks


Hi Fabrice

I had a look at it and the PageRefresh option is a server option and not a browser option. If I add it as a server option I cannot use the TIMER.

Am I missing something?

Thanks
Ruan
Publicado el 20,noviembre 2014 - 11:23
Hi Ruan

2 solutions, depending on the context:

1. just create a button (hidden if you need to) with your server code
Then in your timer, do an executeprocess of the button clic. It will run
the browser code THEN the server code...

-OR-

2. In your browser code, use ajaxexecute to get the new data and refresh
your fields on the browser side

Best regards

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

NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on http://www.fabriceharari.com


On 11/20/2014 5:03 AM, Ruan wrote:
Fabrice Harari wrote:
Hi Ruan

Nearly the exact same way. You create a timer in browser code, and when
it fires, you run your refresh code

Best regards

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

NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on http://www.fabriceharari.com


On 11/19/2014 7:01 AM, Ruan wrote:
Good day

I have created a page that's a dashboard. All the values gets updated
from my database. How can I make the page refresh every x amount of
minutes or seconds? I know that in Windev I used the timer but no Idea
how to do this in Webdev..

Thanks

Hi Fabrice

I had a look at it and the PageRefresh option is a server option and not
a browser option. If I add it as a server option I cannot use the TIMER.

Am I missing something?

Thanks
Ruan