为什么twitter插件(widget)不显示?

问题描述:

如果你看看我的网站www.tripleflowmusic.com,一旦加载页面,Twitter的插件其他HTML文档中加载(Updates.html)到容器的下面的代码的帮助(jQuery的):为什么twitter插件(widget)不显示?

$(document).ready(function() { 
    $("#subpageframe").load('Pages/Updates.html', function(){ 
     $("#subpageframe").fadeIn(200); 

但是当我点击新闻按钮,它做以下的事情(这基本上是重新加载Updates.html容器):

$("#UpdatesButton").click(function() { 
    $("#subpageframe").fadeOut(200, function() { 
     $("#subpageframe").load('Pages/Updates.html', function(){ 
      $("#subpageframe").fadeIn(200); 

Twitter的插件将不会显示

的问题是,为什么这是否发生?

P.S.要访问子页面,只需从地址栏中的URL中删除“#”

你的iframe和格式是不是有喜欢它的网页上。此代码是在首页,但从未在http://www.tripleflowmusic.com/#Pages/Updates.html

<iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" class="twitter-timeline twitter-timeline-rendered" allowfullscreen="" style="border: none; max-width: 100%; min-width: 180px; margin: 0px; padding: 0px; display: inline-block; position: static; visibility: visible; width: 520px;" title="Twitter Timeline" height="600"></iframe> 

您在新闻页,而不是正确的

<center data-twttr-id="twttr-sandbox-0"> 

格式有一定的“一类”和“风格”。

+0

我不明白你的意思,对不起,我使用的代码是在Twitter网站上生成的。 http://www.tripleflowmusic.com/Pages/Updates.html 另外我没有在我的网站上使用iframe – Max 2015-04-01 04:45:51

对于我而言,在OS X上的Safari和Chrome上都可以正常显示,您可以更具体地了解您使用的浏览器和操作系统?

虽然我们在这你可能要清理一些正在抛出的错误:

Failed to load resource: the server responded with a status of 404 (Not  Found) 
http://www.tripleflowmusic.com/FunctionElements/MusicPlayer/Covers/missing.jpg Failed to load resource: the server responded with a status of 404 (Not Found) 

http://www.tripleflowmusic.com/MediaElements/MusicPlayer/Songs/nylmbyb.mp3 Failed to load resource: the server responded with a status of 404 (Not Found) 
+0

我使用了Chrome和Firefox,您是否点击了新闻按钮? Button基本上重新加载了名为“subpageframe”的容器中的“Updates.html”页面。第一次当您访问该网站时,jQuery在文档准备好并显示时将“Updates.html”加载到“subpageframe”中。问题是,在我点击新闻后,twitter插件不会出现:( 是的,在这种情况下,它很好,它只是试图加载一个虚假的大头贴,它是页面加载时播放器的封面,我删除了从现在的服务器:) – Max 2015-04-01 04:21:43

+0

是的,它总是出现在这里,当我reaload它---> http://www.tripleflowmusic.com/Pages/Updates.html,它只有当我重新加载它内我的网站上的“subpageframe”容器 – Max 2015-04-01 04:52:04