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 阅读(7869) | 评论 (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 阅读(341) | 评论 (0)编辑 收藏

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

导航

统计

常用链接

留言簿(1)

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜