所有網頁 圖片 影片 地圖 新聞 網誌搜尋 Gmail 更多 »
最近造訪的群組 | 說明 | 登入
Google 網上論壇首頁
Detecting the Stop button
目前本群組有太多主題設為優先顯示。要優先顯示這個主題,請將其他主題的這個選項取消。
在處理您的要求時發生錯誤。請再試一次。
標幟
  3 個訊息 - 全部摺疊  -  將全文翻譯為 已翻譯 (查看所有原文)
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
 
寄件人:
收件人:
副本:
後續追蹤對象:
新增副本 | 新增後續追蹤對象 | 編輯主旨
主旨:
驗證:
為了確認,請輸入您在以下圖片中看到的字元,或輸入您按下存取圖示時所聽到的號碼。 注意聽並輸入您聽到的號碼
 
David Regev  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 8月2日, 下午12時09分
寄件人: David Regev <david.re...@gmail.com>
日期: Sat, 1 Aug 2009 21:09:16 -0700 (PDT)
當地時間: 2009年8月2日(星期日) 下午12時09分
主旨: Detecting the Stop button
How do I detect when the Stop button (or Esc key) is used to stop a
page from loading? I would guess that the event looks something like
this:
        noise-WebProgress-stop&data==0x<some value>
but I have no idea how to figure out the proper value. Please note
that I would like the event to fire only when a load is interrupted,
not when Stop or Esc are used on a fully-loaded page.

Any suggestions?
Thanks again.


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
bootleq  
檢視個人資料   翻譯為 已翻譯 (查看原文)
(1 位使用者)  更多選項 8月2日, 下午2時48分
寄件人: bootleq <boot...@gmail.com>
日期: Sun, 2 Aug 2009 14:48:45 +0800
當地時間: 2009年8月2日(星期日) 下午2時48分
主旨: Re: Detecting the Stop button

You can use something like
*noise-WebProgress-stop&Components.utils.reportError(data)*
to find the value (should be 2152398850), and with Mozilla Error
Lookup<http://silver.warwickcompsoc.co.uk/mozilla/misc/nserror>we know
the 0x value is 0x804B0002.

But there's another problem, in my test, the sound also fires when "undo
close tab".

2009/8/2 David Regev <david.re...@gmail.com>


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
David Regev  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 8月2日, 下午3時33分
寄件人: David Regev <david.re...@gmail.com>
日期: Sun, 2 Aug 2009 00:33:18 -0700 (PDT)
當地時間: 2009年8月2日(星期日) 下午3時33分
主旨: Re: Detecting the Stop button
That was _very_ useful! The error code is, of course, the same value
as the hex output. That site’s error table[*] is even more
informative.

I got the same issues. The sound also fires when a tab is closed mid-
load, which makes sense, but is not very useful. The Undo Close Tab
issues is more annoying, though.

Thank you.

[*] http://silver.warwickcompsoc.co.uk/mozilla/misc/nserror_list


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

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