[rz] Idle Manager v1.1
The most lightweight solution to control events when the browser enters in idle mode.
- Manage events (after and before) when the browser enters in idle mode and "wakes-up".
- Automatically turns off the light when the browser is in idle mode with a customizable dimmer.
- Smooth dimmer effect.
- Redirection support when enters in idle mode.
- Instant or delayed "wake-up" mode allows to define how the browser reacts and comes back.
- Multi-instance: allows to build "eco-friendly" sites with different idle levels.
- Lightweight: no jQuery required.
- Supports all major browsers, even really old ones! (IE5+, Chrome, Safari, Opera, Firefox and more)
DEMO
HTML 4.01 Transitional
W3C compliant
* New in version 1.1
- Custom color for the dim effect.
- Improved custom events handling.
- Optional embedded object with custom position.
- Fixed a glitch in multi-instance schemes on older browsers.
- Improved startup.
* New in version 1.0.0.3
- The core has been moved to an external file for a faster navigation between pages.
- Minor code optimizations.
* New in version 1.0.0.2
- Fixed a sporadic "false positive" warning in Internet Explorer 11 under Windows 8.1.
- Improved idle "wake-up" from within an inlineframe (the contained page must be in the same site).
- Minor code tweaks.
* New in version 1.0.0.1
- Added detection support when idle status is within an inlineframe.
How to use?
Just drag and drop the extension and optionally setup the self-explanatory properties.
If you need "deeper" idle levels, add a new instance and be sure the idle time is greater than in the previous instance.
Enjoy!
[rz] Idle Manager *** UPD 2017-Sep-06 ***
Forum rules
*** IMPORTANT INFO REGARDING [RZ] EXTENSIONS ***
This section contains extensions that were created by [rz] who has sadly passed away.
These extensions are no longer available or supported, but the discussions may still be helpful for some users.
*** IMPORTANT INFO REGARDING [RZ] EXTENSIONS ***
This section contains extensions that were created by [rz] who has sadly passed away.
These extensions are no longer available or supported, but the discussions may still be helpful for some users.
[rz] Idle Manager *** UPD 2017-Sep-06 ***
Last edited by [RZ] on Wed Sep 06, 2017 7:25 pm, edited 5 times in total.
Re: Idle Manager
a big 'thank you' to everyone who supports my work!!
here are few samples about how to use this extension with advanced programming
(attached info file updated)
The [rz] Idle Manager is not just to fade-in and fade-out the browser! (Even you can ignore this and set the 'Dim' property to 0)
You can manage advanced tasks where bandwidth is critical, here a few samples (using the global 'is_idle' value).
1. A global case that news are updated every second
2. A global case that news are updated every second with a multi-instance manager
in each [rz] Idle Manager instance:
- first instance: setup the idle time 60 seconds (one minute)
- second instance: setup the idle time 180 seconds (three minutes)
in your custom code section:
3. Events triggered only when the browser enters in idle mode and wakes-up
in [rz] Idle Manager, 'Events' category:
add in 'After in' property: IdleChange();
add in 'After out' property: ActiveChange();
in your custom code section:
here are few samples about how to use this extension with advanced programming
(attached info file updated)
The [rz] Idle Manager is not just to fade-in and fade-out the browser! (Even you can ignore this and set the 'Dim' property to 0)
You can manage advanced tasks where bandwidth is critical, here a few samples (using the global 'is_idle' value).
1. A global case that news are updated every second
Code: Select all
setInterval(function()
{
if (is_idle)
{
//
// perhaps the user is gone...
// so, instead of update news, let's clean up the older ones!
//
}
else
{
//
// the user is here and active...
// check and update the news!
//
}
}, 1000);
2. A global case that news are updated every second with a multi-instance manager
in each [rz] Idle Manager instance:
- first instance: setup the idle time 60 seconds (one minute)
- second instance: setup the idle time 180 seconds (three minutes)
in your custom code section:
Code: Select all
setInterval(function()
{
if (is_idle == 1)
{
//
// perhaps the user is gone...
// so, instead of update news, let's clean up the older ones!
//
}
else if (is_idle == 2)
{
//
// oops...
// seems that the user left me alone, log him out!
//
}
else
{
//
// the user is here and active...
// check and update the news!
//
}
}, 1000);
3. Events triggered only when the browser enters in idle mode and wakes-up
in [rz] Idle Manager, 'Events' category:
add in 'After in' property: IdleChange();
add in 'After out' property: ActiveChange();
in your custom code section:
Code: Select all
function IdleChange()
{
//
// this function will be executed only when the browser enters in idle mode
//
}
function ActiveChange()
{
//
// this function will be executed only when the browser is back to active mode
//
}
- Pascal-Gilles
-
- Posts: 83
- Joined: Tue Apr 05, 2011 8:06 pm
- Location: France
- Contact:
Re: Idle Manager
Hi RZ,
Excellent! Didn't know that we could handle such behaviour, thanks!
Cheers

Excellent! Didn't know that we could handle such behaviour, thanks!
Cheers

http://www.soslignes-ecrivain-public.fr/
More than 30(!) Nivo Slider tutorials:
http://www.soslignes-ecrivain-public.fr ... -Blog.html
More than 30(!) Nivo Slider tutorials:
http://www.soslignes-ecrivain-public.fr ... -Blog.html
Re: Idle Manager
thank you pascal for your kind feedback
yes, it is just an example, the possibilities are almost endless
yes, it is just an example, the possibilities are almost endless
Re: [rz] Idle Manager *** UPD 2015-Feb-25 ***
* New in version 1.0.0.2:
- Fixed a sporadic "false positive" warning in Internet Explorer 11 under Windows 8.1.
- Improved iddle "wake-up" from within an inlineframe (the contained page must be in the same site).
- Minor code tweaks.
* New in version 1.0.0.1:
- Added detection support when iddle status is within an inlineframe.
- Fixed a sporadic "false positive" warning in Internet Explorer 11 under Windows 8.1.
- Improved iddle "wake-up" from within an inlineframe (the contained page must be in the same site).
- Minor code tweaks.
* New in version 1.0.0.1:
- Added detection support when iddle status is within an inlineframe.
Re: [rz] Idle Manager *** UPD 2017-May-27 ***
* New in version 1.0.0.3
- The core has been moved to an external file for a faster navigation between pages.
- Minor code optimizations.
- The core has been moved to an external file for a faster navigation between pages.
- Minor code optimizations.
Re: [rz] Idle Manager *** UPD 2017-Sep-06 ***
* New in version 1.1
- Custom color for the dim effect.
- Improved custom events handling.
- Optional embedded object with custom position.
- Fixed a glitch in multi-instance schemes on older browsers.
- Improved startup.
- Custom color for the dim effect.
- Improved custom events handling.
- Optional embedded object with custom position.
- Fixed a glitch in multi-instance schemes on older browsers.
- Improved startup.
Re: [rz] Idle Manager *** UPD 2017-Sep-06 ***
Great to see you enhancing this little beauty!!!!
Running WYSIWYG Web Builder since 2007...
Re: [rz] Idle Manager *** UPD 2017-Sep-06 ***
thank you for your kind words