I got my extension working by moving all code into toolstrip, but I would
prefer to have backend page do the polls from server and update UI...

Cira

On Tue, Jun 9, 2009 at 3:53 PM, Nebojša Ćirić <[email protected]> wrote:

> I am on Vista 64, Chrome dev ver. 3.0.183.1
>
> I am building simple continuous build extension (fetches last status
> from the server, as text file, parses result, and sets toolstrip
> button).
>
> Problems:
>
> 1. My javascript console is blank. Even simple javascript: console.log
> (1); doesn't do anything. In fact there was a bug filed, but it seems
> it was closed in April (I can look up exact bug number).
>
> 2. In my background page when I iterate over views I get back 1
> element, backend page itself. Code looks like:
>
> ...
>  var views = chrome.self.getViews();
>  for (var i in views) {
>      if (views[i].toggleStripStatus)
>        views[i].toggleStripStatus(status);
>  }
> ...
>
> It's pretty hard to debug this (since console is out, and this is
> backend page so alerts don't work), but I managed to inspect views
> variable, and it has only 1 element, and that element is backend page
> itself.
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to