i have remove jquery and changed main.js to this one:

***************************

        function make_alert(){
                alert('hola');
                setTimeout(function(){make_alert();},1000);
        }

        function start(){

                make_alert();
        }

        start();

****************************

and still does not work... :S



On Friday, November 29, 2013 1:24:33 PM UTC+1, [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..
> 
> 
> 
> index.html
> 
> -------------
> 
> <html>
> 
>       <head>
> 
>       </head>
> 
>       <body>
> 
>               <script src="jquery.min.js"></script>
> 
>               <script src="main.js"></script>
> 
>       </body>
> 
> </html>
> 
> 
> 
> 
> 
> main.js
> 
> --------------
> 
> $(function(){
> 
> 
> 
>       function make_alert(){
> 
>               alert('hola');
> 
>               setTimeout(function(){make_alert();},1000);
> 
>       }
> 
> 
> 
>       function start(){
> 
> 
> 
>               make_alert();
> 
>       }
> 
> 
> 
>       start();
> 
> 
> 
> });
> 
> 
> 
> 
> 
> this is a very simple example, that should run an alert every 1 second. This 
> runs on all browsers but not in FirefoxOS..
> 
> 
> 
> i have read about security issues but i do not know how to do it work or 
> something similar.
> 
> 
> 
> Regards.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to