Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home for chromium.org
« Groups Home
chrome.tabs.onUpdated, changeInfo.status start "complete"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wesllei H.  
View profile  
 More options Sep 9 2010, 4:19 pm
From: "Wesllei H." <lord.wesl...@gmail.com>
Date: Thu, 9 Sep 2010 13:19:43 -0700 (PDT)
Local: Thurs, Sep 9 2010 4:19 pm
Subject: chrome.tabs.onUpdated, changeInfo.status start "complete"
Chrome 6.0.472.55

This is an excerpt from my code:
--------------------------------------------------------------------------- --------------------------------------------------
        chrome.tabs.update(tab.id,update,function(utab){
                chrome.tabs.onUpdated.addListener(function (tabId,info,tab){
                        console.log(info.status)
                        if(info.status == "complete"){
                                insertScript(tab);
                                //chrome.tabs.onUpdated.removeListener(arguments.callee);
                        }
                });
        });
--------------------------------------------------------------------------- --------------------------------------------------
The log:
complete
loading
complete

By entering the event, the variable "info.status" has the value
"complete", but really have not updated the page.

The line "chrome.tabs.onUpdated.removeListener(arguments.callee);"
just removing the event before running the script.

Excuse the language, I used an automatic translator!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PhistucK  
View profile  
 More options Sep 10 2010, 3:04 pm
From: PhistucK <phist...@gmail.com>
Date: Fri, 10 Sep 2010 22:04:45 +0300
Local: Fri, Sep 10 2010 3:04 pm
Subject: Re: [crx] chrome.tabs.onUpdated, changeInfo.status start "complete"

Try to also log the URL (info.url), it might give you a hint for what is
going on.

☆*PhistucK*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wesllei H.  
View profile  
 More options Sep 10 2010, 6:00 pm
From: "Wesllei H." <lord.wesl...@gmail.com>
Date: Fri, 10 Sep 2010 15:00:55 -0700 (PDT)
Local: Fri, Sep 10 2010 6:00 pm
Subject: Re: chrome.tabs.onUpdated, changeInfo.status start "complete"
"console.log(info)" instead of "console.log(info.status)"
Results:
Object
        status: "complete"
        __proto__: Object
Object
        status: "loading"
        url: "http://xxxxxx/"
        __proto__: Object
Object
        status: "complete"
        __proto__: Object
Other log in this stretch:
"chrome.tabs.update(tab.id,update,function(utab){
                                console.log(utab);"
Result:
Object
        id: 401
        incognito: false
        index: 13
        selected: true
        status: "loading" <======
        title: "Speed Dial"
        url: "http://xxxxxxxx/"
        windowId: 1
        __proto__: Object
After function chrome.tabs.update the tab.status has value "loading",
but to enter the event the value changes "complete".
This really was to be normal behavior?
Anyway, thanks!

On 10 set, 15:04, PhistucK <phist...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »