On 29.11.2013 13:24, [email protected] wrote: > Hi, > > It was impsoible for me to make work setTimeout on FirefoxOS. I have > tested on Firefox and chrome laptop browsers and works fine.. so i > have made a little example like this.. >
Your problem may be CSP or jQuery-related. I know other people have had problems with jQuery in FirefoxOS, but I don't really remember what exactly they were. If you run the app not directly from a URL but from a zip package, then it is restricted through CSP, see <https://developer.mozilla.org/en-US/docs/Web/Apps/CSP> I'm pretty sure this as main.js would work: -- function make_alert() { alert('hola'); setTimeout(make_alert, 1000); } make_alert(); -- Note how |make_alert| is already the reference to a function. It makes little sense to create a new one for the call of setTimeout. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
