Microsoft JScript运行时错误:无效的来源:https://s-static.ak.fbcdn.net [英] Microsoft JScript runtime error: Invalid origin: https://s-static.ak.fbcdn.net

查看:71
本文介绍了Microsoft JScript运行时错误:无效的来源:https://s-static.ak.fbcdn.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我编写的程序时,有时Visual Studio会给我这个错误:



 Microsoft JScript运行时错误:原点无效:https://s-static.ak.fbcdn.net 





我该怎么办?



它向我展示了一些代码,其中一部分是:



$(窗口).bind(message,function(e) {if(!e ||!e.originalEvent){return} if(e.originalEvent.origin!==chrome:// browser ){throw new Error(invalid origin:+ e.originalEvent .origin)} var f = JSON.parse(e.originalEvent.data)

解决方案

(窗口).bind(message,function( e){if(!e ||!e.originalEvent){return} if(e.originalEvent.origin!==chrome:// browser ){throw new Error(invalid origin:+ e .originalEvent.origin)} var f = JSON.parse(e.originalEvent.data)


经过漫长的一天google搜索问题,我得以摆脱通过禁用Internet Explorer中的ask工具栏来禁用java脚本不知道这是否会成为每个人的解决方案,但是从研究问题来看,似乎大多数错误来自浏览器创建的动态java脚本,而不是他们正在处理的应用程序的java脚本。 br />


要禁用询问工具栏,请进入Internet Explorer。在Internet Explorer菜单上选择工具,然后选择管理添加。一旦向导打开,选择工具栏和扩展我选择项目列表中的Ask.com工具栏并禁用它。



可能有不同小部件的详细信息导致错误:



我怎么做到的是我发现static.ak.fbcdn.net代表静态的akamai facebook内容分发网络。对于大型网络服务器来说,很多时候使用facebook徽标或来自facebook.com的广告等常见项目并不高效。 Akamai(以及其他公司)已在全球范围内构建了高效的内容缓存,这些缓存路由到最靠近您(网络方式)的缓存。理论上这可以让你在点击本地缓存时更快,并降低facebook.com上的点击率,使其更快。域名fbcdn.net实际上由Akamai运行,代表Facebook。其他网站可能有一些HTML / Javascript代码点击''facebook''但实际上也击中了facebook和facebook akamai服务器。 />


在今天的Google搜索中,我遇到过这个问题:

运行多站点,由于某种原因,小部件无法在Internet上运行资源管理器然而它们适用于Firefox。

我刚刚更新了所有内容以确定是否可以修复并且仍然没有运气。

关于该怎么做的任何想法?

该问题的解决方案是:

听起来像是一个javascript问题(IE无论如何都是臭名昭着的。)尝试一次停用一个插件,直到事情开始工作,你'我会找到罪魁祸首。

你也可以快速停用所有插件,看看是否一切正常 - 然后你会知道它是一个插件,可以一次找一个。



在视觉上当调试器因错误而破解时,工作室2010。我注意到https://s-static.ak.fbcdn.netcdn.net是由Internet Explorer创建的小部件的一部分。在调试器中单击窗口小部件属性会显示URL:http://apnwidgets.ask.com/widget ....由于我没有使用工具栏,因此我进入并禁用了它。这样就可以阻止小部件的制作,这也会阻止构建和执行的违规javascriptticker_37.js?build = 202。



干杯和希望这是有效的。

when I run my program that I write sometimes visual studio gives me this error:

Microsoft JScript runtime error: Invalid origin: https://s-static.ak.fbcdn.net



what should I do?

It shows me some code and part of that is :

$(window).bind("message",function(e){if(!e||!e.originalEvent){return}if(e.originalEvent.origin!=="chrome://browser"){throw new Error("Invalid origin: "+e.originalEvent.origin)}var f=JSON.parse(e.originalEvent.data)

解决方案

(window).bind("message",function(e){if(!e||!e.originalEvent){return}if(e.originalEvent.origin!=="chrome://browser"){throw new Error("Invalid origin: "+e.originalEvent.origin)}var f=JSON.parse(e.originalEvent.data)


After a long day of googling on the issue, I was able to get rid of the java script by disabling the ask toolbar in internet explorer. I don''t know if that will be the solution for everyone but from researching the problem it does seem that most had the error coming from dynamic java script created by the browser and not a java script for the application that they were working on.

To disable the ask toolbar go into internet explorer. On the internet explorer menu choose tools and then choose manage add ons. Once the wizard opens choose the toolbars and extensions I choose the Ask.com toolbar in the list of items and disabled it.

Details for those that may have a different widget causing the error:

How I got to that is I found out that static.ak.fbcdn.net stands for static akamai facebook content delivery network. For even big webservers, many times it isn''t efficient to have common items like the facebook logo or ads from facebook.com. Akamai (and others) have built efficient content caches all over the world that route to the closest to you (network wise) cache. This in theory makes things faster as you hit a local cache, and lowers the hits on facebook.com, making it faster too. The domain fbcdn.net is actually run by Akamai, on facebook''s behalf.Other websites probably have a bit of HTML/Javascript code hitting ''facebook'' but in reality hits facebook and the facebook akamai servers as well.

In googling on the issue today, I had come across this:
"Running a multisite and for some reason the widgets do not work in Internet Explorer however they work fine for Firefox.
I just updated everything to see if that would fix and still no luck.
Any ideas on what to do?"
The solution for that problem was:
"Sounds like a javascript issue (which IE is notorious about anyway). Try deactivating the plugins one at a time until things begin working and you''ll have found the culprit.
You can also quickly deactivate all plugins and see if everything works - then you''ll know it''s a plugin and can go one at a time to find it."

In the visual studio 2010 when the debugger broke for the error. I notice that the "https://s-static.ak.fbcdn.netcdn.net" was part of widget being created by Internet Explorer. Clicking on the widgets properties in debugger revealed the URL: "http://apnwidgets.ask.com/widget...." Since I don''t use the toolbar, I went in and disabled it. This stop the widget from being made which also stopped the offending javascript "ticker_37.js?build=202" from being built and executed.

Cheers and Hope this works.


这篇关于Microsoft JScript运行时错误:无效的来源:https://s-static.ak.fbcdn.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆