Again, javascript question:)

button[nr].addListener("execute",job.system.Globals.classSystemModules[func[0]],job.system.Globals.classSystemModules);

On Sat, Feb 13, 2010 at 4:38 PM, [email protected]
<[email protected]> wrote:
> Hello,
>
> i want to make the  "getHome" function dynamic. How can i  add a  var
> for that?
> like
>
> func[0] = "getHome";
> func[1] = "getFeed";
>
> ....
>
> this is my  version
>
> button[nr].addListener("execute",job.system.Globals.classSystemModules.getHome,job.system.Globals.classSystemModules);
>
> i need something like
>
> button[nr].addListener("execute",job.system.Globals.classSystemModules.+func[0]+,job.system.Globals.classSystemModules);
>
> How can i do that?
>
> And/or how can i give this function some vars as arguments?
>
> Thank you
>
>
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
Best regards
- Petr Kobalicek <http://kobalicek.com>

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to