Hi,

you can use the PageVisibility API to be notified when the user switches 
to another tab:

http://demo.qooxdoo.org/current/apiviewer/index.html#qx.bom.PageVisibility

Just keep in mind that old versions of Internet Explorer don't support it:

http://caniuse.com/#feat=pagevisibility


Regards,
Daniel


On 31.10.2013 12:24, Đăng Khoa Trần Quang wrote:
> Hi Qooxdoo Team,
>
> I assume there are two web pages (A and B) on my server.On page A, I set
> a timer that will be activated when I access with interval of time (for
> ex: 1 minute). I can turn on/off that timer as long as I’m still on page
> A, the problem is if the timer is enabled on Page A and then I go to
> page B without turning off the timer that will run forever until I get
> back to page A to turn it off. This issue will affect to the performance
> of my application, I wonder that is there any way to destroy the timer
> whether l leave the page A?Is there any event to capture action leaving
> a page in Qooxdoo?
>
> I really appreciate for your helping
>
>
> Thanks
> Khoa Tran
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to