[Dojo-interest] Dojo callback problem

shaun_stanworth at wordbank.com shaun_stanworth at wordbank.com
Wed Jan 3 10:35:16 MST 2007


For 1) have a look at setInterval.

At 05:33 PM 03/01/2007, you wrote:
>Hi this is Purnima Venkatram.  I am new to dojo. I just started using
>  it. I am using dojo with struts2. I have two doubts.
>
>  1) What i need is on clicking a particular button , a timer to go off
>  which periodically pulls data from an Action class. All i could find
>  was dojo.lang.setTimeout but this calls a function after a delay.. I
>  would need to set a loop and call dojo.lang.setTimeout multiple times
>  till I want to pull the data. Can the dojo.animation.setTimer be 
> used for this ?
>
>  2) How do I get the Action class to return values and access them in
>  the callback function provided in the dojo.io.bind ? I want to return
>  3 variables from my struts2 Action class to my callback function.
>  Normally without callback function , I would have defined getter
>  methods for each variable and then used the s:property value="" tag
>  to get the particular variable. But if I want to access them in the
>  callback function , then how do I do it..
>
>  Please help.
>
>  Thank you.
>_______________________________________________
>Dojo FAQ: http://dojo.jot.com/FAQ
>Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>Dojo-interest at dojotoolkit.org
>http://dojotoolkit.org/mailman/listinfo/dojo-interest

--
Shaun Stanworth
Analyst Programmer
Wordbank Limited
33 Charlotte Street, London W1T 1RR
Direct Line: +44 (0) 20 7903 8830
Fax:  +44 (0) 20 7903 8888 



More information about the Dojo-interest mailing list