Hi,

I have qooxdoo object which is responsible for refreshing UI once in a
second.

First I thought it would work like below but I realized that my approach is
wrong. How should I do this? There seems to be no good examples.
One option would be to use JS timers directly but I guess that wouldn't be
the most elegant solution.

qx.Class.define("foo",
{
    extend : qx.core.Object,

    construct : function()
    {
        this.__timer = new qx.event.Timer(1000);
        this.__timer.start();

        this.addListener("interval", this.checkThings, this)
   },

    members :
    {
        __timer : 0,

        checkThings : function(e)
        {
              alert("ok")
        }
    }
}

      -ilkka

-- 
+358 50 486 0721
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to