English 中文(简体)
Twitter API:拒绝执行javascript[重复]
原标题:Twitter API: refused to execute a javascript [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
Refused to execute a JavaScript script. Source code of script found within request

我想在我的主页上显示我的最新推文。首先,我查看了推特小部件,但它们太大了,不适合我的设计。所以我决定使用Twitter API。我尝试使用以下代码:

<div id="twitter_update_list"></div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=1"></script>

但是当我在chrome中检查控制台日志时,我看到了这个错误:

Refused to execute a JavaScript script. Source code of script found within request.

Obviously, no tweets are shown now :( Any ideas? Thanks!

最佳回答

我自己通过使用本地JavaScript解析推文来解决了这个问题。我下载了blogger.js,稍作修改(删除了一些样式)并将其上传到我的服务器。现在它像一个魅力。

问题回答

暂无回答




相关问题
Redirect to cache URL in Chrome browser

self.location = cache: + self.location I want to redirect from "[URL]" to "cache:[URL]". I just want this code to work in Chrome browser.

我如何更新/重载 Chrome延?

I m在4号 Chrome(目前为4.0.249.0)中开发一个延伸点,显示用户在地位酒吧中的形象。 Ive设计了一个供用户使用的备选办法网页......

Setting Opacity in CSS For Chrome

I ve tried the following: (this is actually for fancybox, as the overlay does not show in chrome/safari: $("#fancy_overlay").css({<br /> background-color : opts....

Chrome Blocking Javascript, Google Wave, Google Gadgets

Project: Developing a gadget template for Google Wave which will allow my Flash movies to interact with the Wave api. I had to adapt the existing Flex application so that it would work with ...

image height using jquery in chrome problem

$( img ).height() returns 0 in chrome, but it returns the actual height in IE and firefox. Whats the actual method to get the height of the image in chrome?

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Table cells bad rendering with Google Chrome/Webkit

On the following code, COL1A and COL3A are not 50% height with Chrome or Webkit. It works fine with IE7 and Firefox. <table border="1"> <tr> <td height="100%">COL 1A</td>...

热门标签