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 閱讀(7898) | 評論 (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 閱讀(356) | 評論 (0)編輯 收藏

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

          導航

          統計

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 隆林| 昆山市| 望谟县| 家居| 平塘县| 河津市| 桦南县| 大兴区| 长汀县| 秭归县| 阳朔县| 旺苍县| 昭平县| 漳州市| 屏南县| 北流市| 平南县| 高青县| 鹤庆县| 夏邑县| 古田县| 家居| 湄潭县| 浦东新区| 岳西县| 娱乐| 东乌| 衡阳市| 邯郸市| 罗定市| 依安县| 玉田县| 井冈山市| 津南区| 汪清县| 临武县| 安宁市| 宁陕县| 翼城县| 绥滨县| 大田县|