[英]Adblock preventing button from being clicked
I'm not able to click on my LinkButton in FireFox when I have either of the following extensions enabled: 当启用以下任一扩展时,我无法在FireFox中单击我的LinkButton:
Any idea why this could be happening and what I could do to get around it? 知道为什么会发生这种情况以及如何解决该问题吗? I've tried CausesValidation ="false"
to no avail. 我已经试过CausesValidation ="false"
无济于事。 It seems like the javascript:__doPostBack()
function is just never called when these extensions are enabled. 启用这些扩展后,似乎永远不会调用javascript:__doPostBack()
函数。
Here's a fuller answer , but I had a click event binding to my LinkButton looked like this: 这是一个更完整的答案 ,但是我有一个绑定到我的LinkButton的click事件看起来像这样:
$(anchorEl).click(function () {
ga('send', 'event', 'outbound', 'click', anchorEl.href, {
'hitCallback':
function () {
document.location = anchorEl.href;
}
});
return false;
});
Because of this the Javascript on the LinkButton was getting completely ignored and the __doPostBack()
was not firing. 因此,LinkButton上的Javascript被完全忽略,并且__doPostBack()
没有触发。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.