所有網頁 圖片 影片 地圖 新聞 網誌搜尋 Gmail 更多 »
最近造訪的群組 | 說明 | 登入
Google 網上論壇首頁
Detecting ‘Complete Navigation’ properly
目前本群組有太多主題設為優先顯示。要優先顯示這個主題,請將其他主題的這個選項取消。
在處理您的要求時發生錯誤。請再試一次。
標幟
  5 個訊息 - 全部摺疊  -  將全文翻譯為 已翻譯 (查看所有原文)
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
 
寄件人:
收件人:
副本:
後續追蹤對象:
新增副本 | 新增後續追蹤對象 | 編輯主旨
主旨:
驗證:
為了確認,請輸入您在以下圖片中看到的字元,或輸入您按下存取圖示時所聽到的號碼。 注意聽並輸入您聽到的號碼
 
David Regev  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 7月26日, 下午3時00分
寄件人: David Regev <david.re...@gmail.com>
日期: Sun, 26 Jul 2009 00:00:17 -0700 (PDT)
當地時間: 2009年7月26日(星期日) 下午3時00分
主旨: Detecting ‘Complete Navigation’ properly
I’m trying to detect when the focused tab completes loading, but I
can’t get it detected just right. I’ve tried both noise-WebProgress-
stop and DOMContentLoaded. The differences from my desired behaviour
are such:

1. I want the sound to play only when the current tab completes
loading, not background tabs. (Otherwise, it’s just confusing.)
2. I want the sound to play only when a page actually completes
loading, not when I have manually stopped it in the middle of loading.
3. The sound should never play when I open a new blank tab. I have
tried DOMContentLoaded&event.target.baseURI!='about:blank', but that
doesn’t work.

Incidentally, Navigational Sounds seems to have fewer problems with
the ‘Complete Navigation’ event.

What event should I use to avoid these problems?

Thank you.


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
bootleq  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 7月26日, 下午6時34分
寄件人: bootleq <boot...@gmail.com>
日期: Sun, 26 Jul 2009 18:34:42 +0800
當地時間: 2009年7月26日(星期日) 下午6時34分
主旨: Re: Detecting ‘Complete Navigation’ properly

Hi, I don't know if there's a simple way to do this. but you can try:

> noise-WebProgress-stop&data==0&subject.originalURI.spec!='about:config'&&su bject.originalURI.spec==gBrowser.currentURI.spec

2009/7/26 David Regev <david.re...@gmail.com>


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
David Regev  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 7月27日, 上午4時38分
寄件人: David Regev <david.re...@gmail.com>
日期: Sun, 26 Jul 2009 13:38:58 -0700 (PDT)
當地時間: 2009年7月27日(星期一) 上午4時38分
主旨: Re: Detecting ‘Complete Navigation’ properly
Thanks for the quick response. However, I came across a bug with this
filter: not only does this prevent the sound from being played by an
unfocused tab, but it also prevents that tab from playing the sound if
I focus it before it finishes loading. Thus:

1. Middle-click a link to open it in a background tab (which means
that browser.tabs.loadInBackground must be set to 'true').
2. Switch to that tab before it finishes loading.
3. Let it finish loading.
        Expected result: I hear the ‘complete navigation’ sound.
        Actual result: I hear nothing.

Thank you.


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
bootleq  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 7月27日, 上午11時46分
寄件人: bootleq <boot...@gmail.com>
日期: Mon, 27 Jul 2009 11:46:14 +0800
當地時間: 2009年7月27日(星期一) 上午11時46分
主旨: Re: Detecting ‘Complete Navigation’ properly

After some test, I found that using "URI" instead of "originalURI" would be
better:
noise-WebProgress-stop&data==0&subject.URI.spec!='about:config'&&subject.UR I.spec==gBrowser.currentURI.spec

Hope it helps.

2009/7/27 David Regev <david.re...@gmail.com>


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
David Regev  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 7月27日, 下午12時22分
寄件人: David Regev <david.re...@gmail.com>
日期: Sun, 26 Jul 2009 21:22:42 -0700 (PDT)
當地時間: 2009年7月27日(星期一) 下午12時22分
主旨: Re: Detecting ‘Complete Navigation’ properly
It may be more reliable now. I’m not sure. But my previous bug is
still there. Thank you for taking the time to figure this out. I
appreciate it.

    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
無其他留言
« 返回討論主題 « 較新的主題     較舊的主題 »

建立群組 - Google 網上論壇 - Google 首頁 - 服務條款 - 隱私權政策
©2009 Google