2008年10月7日

          使用Firebug的console導致IE提示對象未定義錯誤

          1.安裝Firebug Lite
          具體安裝方法查看Firebug Lite的主頁
          http://getfirebug.com/lite.html

          2.添加一段javascript到頁面中
          if (!window.console || !console.firebug)

          {
              var names 
          = ["log""debug""info""warn""error""assert""dir""dirxml",
              
          "group""groupEnd""time""timeEnd""count""trace""profile""profileEnd"];

              window.console 
          = {};
              
          for (var i = 0; i < names.length; ++i)
                  window.console[names[i]] 
          = function() {}
          }

          或直接下載firebugx.js
          http://getfirebug.com/firebug/firebugx.js


          posted @ 2008-10-15 14:36 Gordian Yuan 閱讀(7894) | 評論 (3)編輯 收藏

          JQuery failure code 0x805e000a

          [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]" nsresult: "0x805e000a (<unknown>)" location: "JS frame :: http://localhost:8080/scripts/jquery.js :: anonymous :: line 2699" data: no]

          Exception提示是jquery獲取不到結果.但瀏覽器直接訪問地址可以得到結果
          最終發現問題出現在firefox插件adblock上
          因為我的servlet寫成"/advertiser/page"
          adblock把結果給過濾
          因此jquery獲取不到給出Component returned failure code: 0x805e000a

          解決辦法
          把advertiser改名成vertiser,這樣即使用戶使用firefox和adblock也可以訪問

          posted @ 2008-10-07 21:52 Gordian Yuan 閱讀(353) | 評論 (0)編輯 收藏

          <2008年10月>
          2829301234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          導航

          統計

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 兴安县| 龙南县| 乐都县| 广灵县| 尤溪县| 石首市| 高淳县| 丽江市| 安仁县| 宁河县| 尤溪县| 遂昌县| 辉南县| 于都县| 茶陵县| 灵山县| 诸暨市| 繁峙县| 邯郸市| 新源县| 临城县| 枣强县| 高陵县| 凉山| 东兰县| 黄山市| 商洛市| 淮安市| 城固县| 临海市| 江孜县| 永嘉县| 广宁县| 东辽县| 新田县| 信宜市| 山丹县| 航空| 莱芜市| 湘潭市| 神农架林区|