SWFObject 2.2 static publishing method and click-to-activate mechanisms in legacy IE

mychel_normandeau
mychel_normandeau used Ask the Experts™
on
 As you know in legacy (and unpatched) Internet Explorer, you have to click on active content (like Flash) to start it. I know Microsoft added the click-to-activate "feature" then removed it a couple of years after but I'm still stuck with customers with this "feature" still there.

I would like to use SWFObject 2.2 (latest) to embed Flash on my site. The static publishing method is the one I would like to use (for the rare case where JavaScript is OFF), but would also like to get rid of the click-to-activate feature when present (this seem to be only available with the dynamic publishing method).

Is possible, with SWFObject, to remove the "click-to-activate" in legacy IE and at the same time have the Flash displayed for non-JavaScript browsers?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Frederick McIntyreProgrammer

Commented:
At http://code.google.com/p/swfobject/wiki/documentation in the documentation, please note that it implies you cannot do that with the static method, because it mentions it as an advantage only regarding the dynameic method.
The advantages of the dynamic publishing method are:
It integrates very well with scripted applications and enables the use of dynamic variables (flashvars)
It avoids click-to-activate mechanisms to activate active content in Internet Explorer 6/7 and Opera 9+. Please note that Microsoft has phased out most active content from its Internet Explorer browsers
 

Author

Commented:
Yeah but what about combining static and dynamic methods? This way you can do it (but the markup is more complex).
Programmer
Commented:
If the only reason for using the static method is for those that have javascript disabled, swfobject won't be used for them anyway, since it's javascript! So, use the swfobject dynamic method. Between the <div id="player"></div> tags (where swfobject puts the flash) put <noscript> </noscript> and between those tags put the regular old <object...> stuff. It won't show if javascript is enabled, it will show if javascript is disabled.

People with javascript disabled will still get the click-to-activate, but they are probably used to it! And everyone else gets the benefit of not being so paranoid or out of date.
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Frederick McIntyreProgrammer

Commented:
I assumed you know the "regular old <object> stuff" If not, I believe it's pretty much there in the swfobject documentation. Or there are plenty of other places to find it.
Frederick McIntyreProgrammer

Commented:
For what's between the <noscript> </noscript> tags, just follow the static method Step 1 directions. Of course you'll do step 2 anyway, for the dynamic method. No sense to do Step 3, since that all involves javascript and this is for non-javascript browsers.

Just before the directions for the dynamic method is a link to an HTML generator, which may be helpful if this is new to you.

Sorry for the multiple coments - I always think of things after I click Submit . :-(

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial