PDA

View Full Version : Running Thread in saencha touch



smj
13 Oct 2011, 6:14 AM
Hello all,


I am working on an application where I want to check data change on server in background while user is doing some other stuff.
Simply I want to run a thread which will ask server about data change after some time interval. But I didn't found any example. I also tried to add taskrunner but it not worked well with me so Please give some example link or code.

Thank You

AndreaCammarata
13 Oct 2011, 6:18 AM
Hi smj,
I think that taskrunner works great for this purpose.
Why it doesn't worked well for you?

smj
13 Oct 2011, 6:29 AM
Hello Andrea Cammarata,

Thanks for quick reply. But Task Runner is not supporting Sencha Touch. But still if you have any example please let me know.

Thank You

AndreaCammarata
13 Oct 2011, 6:39 AM
Hello Andrea Cammarata,

Thanks for quick reply. But Task Runner is not supporting Sencha Touch. But still if you have any example please let me know.

Thank You

Yeah you are right, I made confusion with Ext.
So, why don't you try with a simple "setInterval"?

smj
13 Oct 2011, 7:00 AM
Can you please explain with some example..

Thank You