Page 1 of 1

Pop-up window

Posted: 2020-04-13 08:25
by dgasparin
Hello everyone, I need your help about a need.
In my AppGini application teher is an operator that manages events/alarms.
These events/alarms are wrote inside the database from an external application.
I need to make a pop-up window when an even/alarm is received.
Could you help me please?
Thank you very much indeed
Davide

Re: Pop-up window

Posted: 2020-04-13 08:53
by pbottcher
Hi,

just set a

setTimeout(function, 60000);

where function is a AJAX call to your database to check if there is a new event/alarm and run the pop-up.

You can set this in the header-extras.php and check if the current user is the operator, so it will apply only for that user.

Re: Pop-up window

Posted: 2020-04-13 09:15
by dgasparin
Thank you so much Pascal,
I will try immediately
Thank you