When you call Utils.openUrlInBrowser(), it'll return before actually loading the page. So you need to wait until the page has loaded before trying to find it.
Unfortunately... Ubiquity doesn't have an API to let you do this easily. And off the top of my head, I'm not sure how to easily achieve it. I've added a ticket to provide an API for this: http://ubiquity.mozilla.com/trac/ticket/534 - Blair On 22/01/2009 7:15 AM, Douglas Nogueira wrote: > I am trying to do this: > > Utils.openUrlInBrowser("http://www.site.com"); > var siteTab= this.findTab("://site.com <http://site.com>"); > > In second line, there is some problem with her. I put a displayMessage > after her and dont show anything. > Before, when "www.site.com <http://www.site.com>" was already open, the > command findTab found it. But now, when i open it through > Utils.openUrlInBrowser("http://www.site.com") he cant find the tab. > There is something wrong? > > --- > Doug > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
