ajax加载flash swf出来是空的

发布于 2024-12-08 02:47:05 字数 1713 浏览 0 评论 0原文

我通过 IE 中的 jquery.load() 加载 soundcloud 嵌入式播放器

,每当 swf 位于其中时,加载就会冻结并变得不完整。 如果没有,则查询工作正常。它在 Chrome、Firefox 和 Safari 上也能正常工作。

function ajaxLoad(id){
    var url = "http://www.konstructive.com/projects/karlssonwinnberg/?page_id=118&cat="+id;
    $('#container').empty();
    $('#container').load(url, function(){
        $('#container').masonry('reload');
        Shadowbox.clearCache();             
        Shadowbox.setup();      
        //Masonry();
        ClickOptions();         
    }); 
return false;   

对象

看起来像这样

<div class="item">
    <object height="571" width="571"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F24256938&amp;auto_play=false&amp;player_type=artwork&amp;color=000000"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="571" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F24256938&amp;auto_play=false&amp;player_type=artwork&amp;color=000000" type="application/x-shockwave-flash" width="571"></embed> </object>                        
</div> 

你可以在这里查看演示版本 http://www.konstructive.com/projects/karlssonwinnberg/

和 ajax 加载页面位于此处 http://www.konstructive.com/projects/karlssonwinnberg/?page_id =118&cat=0

还有其他方法使用ajax加载flash吗? 非常感谢任何帮助

im loading soundcloud embedded players in via jquery .load()

in IE whenever an swf is in it the load freezes and becomes incomplete.
if there isnt one the query works fine. it also works fine on chrome, Firefox and Safari.

function ajaxLoad(id){
    var url = "http://www.konstructive.com/projects/karlssonwinnberg/?page_id=118&cat="+id;
    $('#container').empty();
    $('#container').load(url, function(){
        $('#container').masonry('reload');
        Shadowbox.clearCache();             
        Shadowbox.setup();      
        //Masonry();
        ClickOptions();         
    }); 
return false;   

}

object looks like this

<div class="item">
    <object height="571" width="571"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F24256938&auto_play=false&player_type=artwork&color=000000"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="571" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F24256938&auto_play=false&player_type=artwork&color=000000" type="application/x-shockwave-flash" width="571"></embed> </object>                        
</div> 

you can check out the demo version here
http://www.konstructive.com/projects/karlssonwinnberg/

and the ajax load page here
http://www.konstructive.com/projects/karlssonwinnberg/?page_id=118&cat=0

is there another way to load flash using ajax?
any help is much appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文