admin管理员组文章数量:1335854
I am trying to embed a swf file to a page (google app engine page ) by following javascript code:
<script type="text/javascript">
//This example uses dynamic publishing with swfObject. Login is handled in the swf
//Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers
swfobject.embedSWF("loader.swf", "flashContent", "640", "480", "10.2", null, null, null, {name:"flashContent"});
//REST OF THE CODE
</script>
It works properly on HTTP, but the content does not work on HTTPS. I've googled a lot but I did not find the solution. I need to use HTTPS for Secure Canvas URL for creating facebook application. As you can see in the ments below, https work on safari but not in Chrome.
Any idea will be appreciated.
I am trying to embed a swf file to a page (google app engine page ) by following javascript code:
<script type="text/javascript">
//This example uses dynamic publishing with swfObject. Login is handled in the swf
//Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers
swfobject.embedSWF("loader.swf", "flashContent", "640", "480", "10.2", null, null, null, {name:"flashContent"});
//REST OF THE CODE
</script>
It works properly on HTTP, but the content does not work on HTTPS. I've googled a lot but I did not find the solution. I need to use HTTPS for Secure Canvas URL for creating facebook application. As you can see in the ments below, https work on safari but not in Chrome.
Any idea will be appreciated.
Share Improve this question edited Feb 17, 2013 at 19:53 csuo asked Feb 16, 2013 at 23:55 csuocsuo 8203 gold badges17 silver badges31 bronze badges 6- Hmm, I see the same thing on both URL's. I'm not sure whether it's working properly or not. I see a preloader that goes 100% in both cases, but then nothing else after that. The progress bar animates all the way to the right, but then nothing else happens. Is it supposed to do anything after that? I don't think swfobject is the problem since I see the same Flash content on http and https. – Sunil D. Commented Feb 17, 2013 at 2:55
- if you can see the progress bar, it means, swf object is embeded to the page and you have not the problem which I mentioned, what is your browser? – csuo Commented Feb 17, 2013 at 7:36
- I tried it in Safari and Firefox on Mac OS -- worked correctly. However, with Chrome I get the "alternate" content that tells me I need to have Flash Player 10.2 or later installed. I have Flash 11.5 installed in Chrome. I guess it is an issue w/swfobject after all, but only in Chrome :( – Sunil D. Commented Feb 17, 2013 at 19:32
- Yes, you are right, I was trying with Chrome. So what do you think? how we can handle this problem on Chrome? – csuo Commented Feb 17, 2013 at 19:50
- The problem seems to be with the swfobject code that detects the flash player version. I would look there and try to debug it. Try to determine the version number its detecting, try (as a test) to allow earlier versions of Flash, etc. – Sunil D. Commented Feb 18, 2013 at 0:11
1 Answer
Reset to default 7 +50I can see that https://radmahdi.appspot./facebook/userstatusweb/index.html is now working for you, once you changed the link to swfobject from HTTP to HTTPS as I suggested in my ment :)
You could do
//ajax.googleapis./ajax/libs/swfobject/2.2/swfobject.js
as your link, in which case the protocol used will be relative to the page loaded. Which is probably neater.
If you are happy with the solution, please mark the question as answered.
本文标签: javascriptswfobject does not work on https in ChromeStack Overflow
版权声明:本文标题:javascript - swfobject does not work on https in Chrome - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742397682a2467254.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论