IE's "Click to activate and use this control"

  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6229
  • Loc: South-Africa

Post 3+ Months Ago

Many Times when giving website reviews I stumble upon a "Click To Activate And Use This Control" thing when viewing the site in IE ... So I thought I'd post this workaround for that here so you can all see this (if you don't already know about it), and that I don't have to post this whole message in each of those wbsite reviews ...

I wrote:
One little trick to work around the "Click to Activate and Use This Control" problem
(due to a plugin issue with microsoft)

Your embed code is:

Code:

Code: [ Select ]
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/s wflash.cab#version=8,0,0,0"
id="mars" align="middle" height="130" width="130">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="mars.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed src="mars.swf" quality="high" bgcolor="#ffffff"
name="mars" allowscriptaccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
align="center" height="130" width="130">
</object>
  1. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
  2. codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/s wflash.cab#version=8,0,0,0"
  3. id="mars" align="middle" height="130" width="130">
  4. <param name="allowScriptAccess" value="sameDomain">
  5. <param name="movie" value="mars.swf">
  6. <param name="quality" value="high">
  7. <param name="bgcolor" value="#ffffff">
  8. <embed src="mars.swf" quality="high" bgcolor="#ffffff"
  9. name="mars" allowscriptaccess="sameDomain"
  10. type="application/x-shockwave-flash"
  11. pluginspage="http://www.macromedia.com/go/getflashplayer"
  12. align="center" height="130" width="130">
  13. </object>

If you ceate a myprintln.js file that simply says:

Code: [ Select ]
// myprintln.js
function myprintln(s) { document.writeln(s); }
  1. // myprintln.js
  2. function myprintln(s) { document.writeln(s); }


and put this in the head of your file:

Code: [ Select ]
...yada yada yada... 

 <script src="myprintln.js"></script>
 </head>
  1. ...yada yada yada... 
  2.  <script src="myprintln.js"></script>
  3.  </head>

...and wrap your script like this:

Code: [ Select ]
<script>
myprintln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');                 
myprintln('codebase="http://fpdownload.macromedia.com/pub/shockwave/c abs/flash/swflash.cab#version=8,0,0,0"');
myprintln('id="mars" align="middle" height="130" width="130">');
myprintln('<param name="allowScriptAccess" value="sameDomain">');
myprintln('<param name="movie" value="mars.swf">');
myprintln('<param name="quality" value="high">');
myprintln('<param name="bgcolor" value="#ffffff">');       
myprintln('<embed src="mars.swf" quality="high" bgcolor="#ffffff"');
myprintln('name="mars" allowscriptaccess="sameDomain"');
myprintln('type="application/x-shockwave-flash"');
myprintln('pluginspage="http://www.macromedia.com/go/getflashplayer"' );
myprintln('align="center" height="130" width="130">');
myprintln('</object>');
</script>
  1. <script>
  2. myprintln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');                 
  3. myprintln('codebase="http://fpdownload.macromedia.com/pub/shockwave/c abs/flash/swflash.cab#version=8,0,0,0"');
  4. myprintln('id="mars" align="middle" height="130" width="130">');
  5. myprintln('<param name="allowScriptAccess" value="sameDomain">');
  6. myprintln('<param name="movie" value="mars.swf">');
  7. myprintln('<param name="quality" value="high">');
  8. myprintln('<param name="bgcolor" value="#ffffff">');       
  9. myprintln('<embed src="mars.swf" quality="high" bgcolor="#ffffff"');
  10. myprintln('name="mars" allowscriptaccess="sameDomain"');
  11. myprintln('type="application/x-shockwave-flash"');
  12. myprintln('pluginspage="http://www.macromedia.com/go/getflashplayer"' );
  13. myprintln('align="center" height="130" width="130">');
  14. myprintln('</object>');
  15. </script>
...it will work around that problem
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

I usually use the swfObject since it has code to detect player version, force an upgrade to the newest flash player, and its simple to implement, but righteous_trespasser's code will work well if your just trying to get past that stupid "click to activate"
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23458
  • Loc: Woodbridge VA

Post 3+ Months Ago

http://www.sometricks.com/2006/04/23/be ... ashobject/
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6255
  • Loc: Seattle, WA

Post 3+ Months Ago

Just as an added side note, FlashObject has been renamed to SWFObject and can be obtained here.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5146
  • Loc: SC-USA

Post 3+ Months Ago

graphixboy wrote:
can we make one of the solution threads for this sticky in the flash forum? I feel like we've been answering this question pretty frequently...


Good idea, sir. ;)
  • Jaw
  • Graduate
  • Graduate
  • User avatar
  • Posts: 132
  • Loc: Minneapolis, MN

Post 3+ Months Ago

Dreamweaver will also attempt to insert a chunk of javascript to fix the issue. (DW8.0.2 and up.) The code is a bit more bloated but for the most part it handles it auto-magically.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23458
  • Loc: Woodbridge VA

Post 3+ Months Ago

I am going to "unsticky" this topic because Microsoft will be removing this from Internet Explorer in April

http://msdn2.microsoft.com/en-us/bb969055.aspx

Quote:
In April 2006, Microsoft changed the way Internet Explorer activates ActiveX controls loaded from web pages. Users were required to manually activate controls, by clicking the control or confirming a "click to activate" message, before interacting with controls loaded by websites. As a result of recent technology licenses acquired by Microsoft, these restrictions are no longer mandatory. Microsoft plans to remove the activation behavior from Internet Explorer in April 2008.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

Nice to see there's actually a month named now. :D

I wonder how much Microsoft ended up having to shell out for the license, surely it was substantially less when the patent holder realized everyone was just working around the patent. :scratchhead:
  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

ATNO/TW wrote:
I am going to "unsticky" this topic because Microsoft will be removing this from Internet Explorer in April


woo hoo!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23458
  • Loc: Woodbridge VA

Post 3+ Months Ago

They actually came through with it. Installed updates this morning and no more "click to activate" Yippee!!
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6229
  • Loc: South-Africa

Post 3+ Months Ago

ATNO/TW wrote:
They actually came through with it. Installed updates this morning and no more "click to activate" Yippee!!

That's awesome! That was very very annoying ...

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.