Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 类似Facebook的按钮iframe实现在Firefox中不可单击,可在其他浏览器中使用_Javascript_Facebook_Facebook Like_Facebook Iframe - Fatal编程技术网

Javascript 类似Facebook的按钮iframe实现在Firefox中不可单击,可在其他浏览器中使用

Javascript 类似Facebook的按钮iframe实现在Firefox中不可单击,可在其他浏览器中使用,javascript,facebook,facebook-like,facebook-iframe,Javascript,Facebook,Facebook Like,Facebook Iframe,我使用的是普通的iframe代码,而不是xfbml(添加了片段,因此恢复为基本的iframe) 我认为冒犯的界线是: __d("DOMEvent",["copyProperties"],function(a,b,c,d,e,f){var g=b("copyProperties");function h(i){this.event=i||window.event;this.target=this.event.target||this.event.srcElement;}g(h.prototype,

我使用的是普通的iframe代码,而不是xfbml(添加了片段,因此恢复为基本的iframe)

我认为冒犯的界线是:

__d("DOMEvent",["copyProperties"],function(a,b,c,d,e,f){var g=b("copyProperties");function h(i){this.event=i||window.event;this.target=this.event.target||this.event.srcElement;}g(h.prototype,{preventDefault:function(){var i=this.event;i.preventDefault?i.preventDefault():i.returnValue=false;return this;},stopPropagation:function(){var i=this.event;i.stopPropagation?i.stopPropagation():i.cancelBubble=true;return this;},kill:function(){this.stopPropagation().preventDefault();return this;}});e.exports=h;});
__“DOMEventListener”是指“DOMEventListener”的d(“DomeventListen者”的d(“DomeventListen者)”,[[,,,[]功能(a,b,b,c,c,d,e,e,f)的函数(a,b,b,c,c,d,d,e,e,f)的函数(a,b,b,b,b,b,b,b,b,b,c,c,c,c,c,c,c,c,c,e,e,f)的函数(a,a,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,c,f)的){{{{g,f)的g g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g g(j,k,l);返回{remove:function(){h(j,k,l);j=null;}};},remove:h};e.exports=i;})

这是一个已知的问题,我在一个普通网站上尝试了相同的代码,并禁用了所有附加组件,以确保它不存在兼容性问题


我在mac上使用firefox 12.0。

我也面临同样的问题,但我没有做任何修改,所以我认为这是facebook的错,因为这非常简单(只需从FB复制并粘贴到你的站点),而且它在IE、Chrome和Safari中都能工作(到目前为止我已经尝试过)
但如果你已经登录FB,就不会有这样的问题。让我们试着联系FB让他们知道。

我能说的是,我第一次登录Facebook时Firefox中没有这个问题,所以在尝试从Facebook加载登录弹出窗口时一定出了问题?我打赌Facebook很快就会解决这个问题,因为它只会影响任何使用iframe版本的like按钮的网站

编辑:Facebook似乎解决了这个问题,但到今天问题又回来了。可能是Facebook改变了其他一些东西,导致此问题再次发生?

截至2012年5月3日22:14(格林尼治标准时间+1),Facebook似乎已经解决了此问题

我检查了iframe实现引入的javascript,发现有问题的代码行已被更改


现在,当我单击类似于facebook的按钮时,弹出窗口会显示为它应该显示的样子。

这似乎是facebook的问题,我知道类似代码(javascript)的xfbml版本可以工作,但它在随机页面刷新等方面有缺陷,所以不是一个解决方案。我们如何联系facebook让他们知道Firefox的iframe问题?
this.event is undefined
http://static.ak.fbcdn.net/rsrc.php/v1/yW/r/MrPDat_Xp7Z.js (line 31)
__d("DOMEvent",["copyProperties"],function(a,b,c,d,e,f){var g=b("copyProperties");function h(i){this.event=i||window.event;this.target=this.event.target||this.event.srcElement;}g(h.prototype,{preventDefault:function(){var i=this.event;i.preventDefault?i.preventDefault():i.returnValue=false;return this;},stopPropagation:function(){var i=this.event;i.stopPropagation?i.stopPropagation():i.cancelBubble=true;return this;},kill:function(){this.stopPropagation().preventDefault();return this;}});e.exports=h;});