New Tab Loaded Event?

621 views
Skip to first unread message

Chromag9

unread,
May 31, 2011, 9:51:10 AM5/31/11
to Chromium-extensions
I'm very new to Chrome Extensions but I have coded Firefox extensions
in the past. I'm loading my code as a background and creating a new
tab with this call:
chrome.tabs.create(properties, tabCallback);

Is there some event or something I can add to the tab so my code gets
called when the page is completely loaded? For example:

function tabCallback(tab) {
tab.onPageLoad = myTabLoaded;
}

Is there an event listener or anything I can use?

Thanks!

Scott Fujan

unread,
May 31, 2011, 7:59:31 PM5/31/11
to Chromag9, Chromium-extensions
http://code.google.com/chrome/extensions/tabs.html#event-onUpdated

see the "complete" status


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Chromag9

unread,
Jun 1, 2011, 9:23:01 AM6/1/11
to Chromium-extensions
I found that not long after posting this question. It seems as though
the event monitors all tabs. Currently, I just check the tabs URL to
make sure it's the correct tab and that the status is set to
"complete".

Thanks so much for your your help.

On May 31, 7:59 pm, Scott Fujan <sc...@fujan.name> wrote:
> http://code.google.com/chrome/extensions/tabs.html#event-onUpdated
>
>  <http://code.google.com/chrome/extensions/tabs.html#event-onUpdated>see the
> "complete" status
>
>
>
>
>
>
>
> On Tue, May 31, 2011 at 8:51 AM, Chromag9 <chrom...@gmail.com> wrote:
> > I'm very new to Chrome Extensions but I have coded Firefox extensions
> > in the past.  I'm loading my code as a background and creating a new
> > tab with this call:
> > chrome.tabs.create(properties, tabCallback);
>
> > Is there some event or something I can add to the tab so my code gets
> > called when the page is completely loaded?  For example:
>
> > function tabCallback(tab) {
> >    tab.onPageLoad = myTabLoaded;
> > }
>
> > Is there an event listener or anything I can use?
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org.
Reply all
Reply to author
Forward
0 new messages