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. If I minimize the
> browser or say, I work on other browser it doesn't work. Again when I
> switch over to this tab it tries to make up for the sleep mode it had gone
> to and makes all past ajax request at one go! How to avoid this and make it
> work even if I'm not on the same tab?
>
> *ajax('{{=URL("default","getaddress")}}' + '?latitude=' +
> position.coords.latitude + '&longitude=' + position.coords.longitude
> ,[],'target');*
>
> here latitude, longitude are variables that I am getting from HTML5
> geolocation.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.