Page 1 of 1

Detect page refresh

PostPosted: Fri Mar 25, 2011 11:52 am
by Janssenjos
Hi all,

Is there a way to detect when a page refresh of the browser happens (F5 or browser refresh button)?

I need to run some code in servoy if this happens.

Re: Detect page refresh

PostPosted: Tue Mar 29, 2011 11:28 am
by Janssenjos
No one knows? :)

Re: Detect page refresh

PostPosted: Wed Mar 30, 2011 4:12 pm
by ngervasi
Not that I know.
Maybe the onShow method of the displayed form is triggered again but I won't base any logic on that.
Why do you need that?

Re: Detect page refresh

PostPosted: Wed Mar 30, 2011 5:29 pm
by jcompagner
onshow will not be called,
for just a refresh nothing will be called in servoy code.
The components on the page will be just "repainted" nothing more.