[web2py] Re: It seems that this ajax request is made only when we are seeing it on present tab? How to avoid this

2016-05-11 Thread Niphlod
as who makes the browser, don't blame web2py :-P On Wednesday, May 11, 2016 at 10:40:46 AM UTC+2, Emmanuel Dsouza wrote: > > no Niphlod, > > there is a difference between the two: > > *window.setInterval(function() {* > *//some code for html5 geolocation* > *

[web2py] Re: It seems that this ajax request is made only when we are seeing it on present tab? How to avoid this

2016-05-11 Thread Emmanuel Dsouza
no Niphlod, there is a difference between the two: *window.setInterval(function() {* *//some code for html5 geolocation* *ajax('{{=URL("default","getaddress")}}' + '?latitude=' + position.coords.latitude + '=' + position.coords.longitude ,[],'target');* *}, 5000);* and

[web2py] Re: It seems that this ajax request is made only when we are seeing it on present tab? How to avoid this

2016-05-11 Thread Niphlod
this is quite a default behaviour in all modern browsers: the inactive tab is --- inactive. On Wednesday, May 11, 2016 at 9:09:10 AM UTC+2, Emmanuel Dsouza wrote: > > I double checked that this ajax request from my view works only when I am > looking at the tab on which the view is displayed.