[Project_owners] setInterval and tabs

Marco Pivetta ocramius at gmail.com
Wed Nov 21 02:31:55 PST 2007


Thank you, I'll take a look around ^^
Using mozilla components I should be able to isolate my script to a single
tab right?

2007/11/21, Eric H. Jung <eric.jung at yahoo.com>:
>
>
> --- Marco Pivetta <ocramius at gmail.com> wrote:
>
> > I forgot to tell you that the javascript should be injected in a webpage
> in
> > a greasemonkey-similar way, so the timer shouldn't be active everywhen,
> but
> > only when the page is loaded
> > this is why more timers should be possible on different tabs
> > the problem is that the timers move from a tab to another, as if the
> object
> > "window" changes...
> >
> > I've noticed that the same problem comes with every event listener...
> > onClick, onMouseOver, etc...
> > Basically the idea is "how do I work in a closed space, a tab, without
> > limitations when trying to access a mozilla component"?
> >
>
> It sounds like you should define the timer callback in an XPCOM singleton
> (service).
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
>



-- 
Standard Ogame Project - http://stogame.lepihost.net
Making Ogame a better place...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/project_owners/attachments/20071121/64612c7a/attachment.html 


More information about the Project_owners mailing list