958
Views
10
Comments
Solved
How to autorefresh specific webblocks of a webpage every x seconds in REACTIVE WEB?

I am new to outsystems, I am facing a problem while implementing autorefresh in (Reactive web) a particular webblock data in a webpage every 15 mins. i have even searched various forge and Javascripts, but they are not working for me.


2020-06-04 15-38-19
Samiksha Manekar

Hi,

Try this javascript : window.history.pushstate  or

history.pushState(state, title [, url])

this may help to refresh browser after few seconds.

Thanks

2022-12-03 12-19-54
Aditya C

actually I don't want to refresh the browser. I want o refresh the specific block on a webpage every 15 mins.

2025-05-15 01-57-31
Grace Tamayo

I always use window.setTimeout(function, milliseconds);  when I need to refresh something every so and so seconds.

you may put the client action that refreshes the data on the function part of the setTimeout

2022-12-03 12-19-54
Aditya C

Hi Grace,

i did try this method and called the action instead of function but still its not refreshing automatically after every 5 sec. You can check the image

Refreshjava.jpg
2025-05-15 01-57-31
Grace Tamayo

Can you show what is inside the AutoRefresh and which data needs to be refreshed? 

Also, when do you run this javascript?

2022-12-03 12-19-54
Aditya C
Refreshaction.jpg
2025-05-15 01-57-31
Grace Tamayo

I apologize, I got confused with setTimeout and setInterval.

It must be setInterval something like this.

setInterval(function () {

    $actions.Action1();

}, 1000);

2025-05-15 01-57-31
Grace Tamayo
Solution
2022-12-03 12-19-54
Aditya C
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.