It means that some property of the tab has changed. Currently, the only property changes that are reflected here are "status" and "url", so you can use this to track when a tab has navigated to another URL. Erik
2009/6/16 disya2 <[email protected]> > > > > A callback is used when you want to create/update/remove a tab and you > > > want to know when it is done. > > One thing I found for sure is that > chrome.tabs.update(tab.id, {url: new_url}, function () { > // is called before new page loaded > }); > > So what does 'tab udpated' event exactly mean? > > > Denis > > > On 16 июн, 00:30, disya2 <[email protected]> wrote: > > Thanks for replay, > > As always I have a few more questions :) > > > > > A callback is used when you want to create/update/remove a tab and you > > > want to know when it is done. > > > > This is what I want exactly. So if I use > > chrome.tabs.update(tab.id, {url: new_url, selected: true}, function () > > { > > // can I be sure that here I get tab loaded new url > > // or at this point there is no way to know that url was loaded? > > // if tab wasn't selected will the callback be called twice - > > first on selection change > > // and then on page loaded? > > // if new url matches old url will it have the same effect as > > location.reload()? > > }); > > > > another point: > > void remove(int id) <- it seems that there is no callback for > > tabs.remove > > > > one more question: > > event onRemoved(int tabId) // *WILL* be followed by tab-selection- > > changed. > > If I call tabs.remove() for unselected tab will I have tab selection > > changed? > > > > Denis > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
