kaijajan / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

showExpressInstall does not work on explorer (ie8 and some versions of ie9) #594

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an html with this code:

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>

        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            function cancelFunction() {
                alert("Express Install was cancelled");
            }
            if (swfobject.hasFlashPlayerVersion("11")) {
                var fn = function() {
                    var att = { data:"test.swf", width:"300", height:"120" };
                    var par = { flashvars:"name1=hello&name2=world&name3=foobar" };
                    var id = "replaceMe";
                    swfobject.createSWF(att, par, id);
                };

            }
            else {
                var fn = function() {
                    var att = { data:"expressInstall.swf", width:"600", height:"240" };
                    var par = { menu:false };
                    var id = "replaceMe";
                    swfobject.showExpressInstall(att, par, id, cancelFunction);
                }
            }
            swfobject.addDomLoadEvent(fn);
        </script>
    </head>

    <body>
        <div id="replaceMe">Alternative content</div>
    </body>
</html>

2. use Ie8 and open the html (with flash player 10.X or less)

The expected is that must appear in the replaceMe div the expressInstall.swf to 
allow to upgrade flash player version

What do you see instead?

Nothing happend. 

Using Ie8 in WinXp. and some versions of ie9 in win7.
Using the last version of the swfobject product swfobject_2_2.

In firefox, chrome, and safari works perfect, only fails in Ie.

Original issue reported on code.google.com by RnK...@gmail.com on 14 Oct 2011 at 2:22

GoogleCodeExporter commented 9 years ago
No that FP 11 is out, are you sure you are running<FP11 on your IE installs?

Does the test suite page work for you (as this was tested in IE8/9 on multiple 
windows systems as working):
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_api_express_install
.html

If it fails, I would do a few things to debug:
1) add in a alert etc to see what version of FP SWFObject is able to detect:

var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript 
object
            var output = "You have Flash player " + playerVersion.major + "." + playerVersion.minor + "." + playerVersion.release + " installed";
            alert(output);

2) Use the developer tools in IE (like firebug) to inspect the DOM and see what 
actually got written to the page.

*** note - depending on your IE settings, it can also block localized activeX 
content - please test with content up on a server...

*** this is also true of the Flash player sandbox - unless you give express 
permission to the folder you are working within, the FP will throw a security 
sandbox error that you local content cannot communicate with 
fpdownload.macromedia.com

You will not see any flash content if either of these scenarios are true...

Original comment by aran.rhee@gmail.com on 15 Oct 2011 at 2:56

GoogleCodeExporter commented 9 years ago
No that FP 11 is out, are you sure you are running<FP11 on your IE installs?

Does the test suite page work for you (as this was tested in IE8/9 on multiple 
windows systems as working):
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_api_express_install
.html

If it fails, I would do a few things to debug:
1) add in a alert etc to see what version of FP SWFObject is able to detect:

var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript 
object
            var output = "You have Flash player " + playerVersion.major + "." + playerVersion.minor + "." + playerVersion.release + " installed";
            alert(output);

2) Use the developer tools in IE (like firebug) to inspect the DOM and see what 
actually got written to the page.

*** note - depending on your IE settings, it can also block localized activeX 
content - please test with content up on a server...

*** this is also true of the Flash player sandbox - unless you give express 
permission to the folder you are working within, the FP will throw a security 
sandbox error that you local content cannot communicate with 
fpdownload.macromedia.com

You will not see any flash content if either of these scenarios are true...

Original comment by aran.rhee@gmail.com on 15 Oct 2011 at 2:56

GoogleCodeExporter commented 9 years ago
same thing happens with firefox and fp 10.0.22 on winxp

Original comment by iggy.zi...@gmail.com on 28 Aug 2012 at 10:49