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

  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Joined: Mar 12, 2007
  • Posts: 6228
  • Loc: South-Africa
  • Status: Offline

Post October 23rd, 2007, 9:49 pm

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
Let's leave all our *plum* where it is and go live in the jungle ...
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 23rd, 2007, 9:49 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post October 24th, 2007, 7:50 pm

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 15th, 2007, 12:34 am

http://www.sometricks.com/2006/04/23/be ... ashobject/
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6129
  • Loc: Seattle, WA
  • Status: Offline

Post December 16th, 2007, 9:31 pm

Just as an added side note, FlashObject has been renamed to SWFObject and can be obtained here.
The Beer Monocle. Classy.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post December 18th, 2007, 3:26 pm

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. ;)
- dM
  • Jaw
  • Graduate
  • Graduate
  • User avatar
  • Joined: Nov 08, 2004
  • Posts: 132
  • Loc: Minneapolis, MN
  • Status: Offline

Post February 11th, 2008, 4:36 pm

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 20th, 2008, 10:11 am

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.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post February 20th, 2008, 10:43 am

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:
Strong with this one, the sudo is.
  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Joined: Oct 12, 2004
  • Posts: 861
  • Loc: BKNY
  • Status: Offline

Post February 20th, 2008, 11:19 am

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post April 9th, 2008, 1:16 pm

They actually came through with it. Installed updates this morning and no more "click to activate" Yippee!!
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Joined: Mar 12, 2007
  • Posts: 6228
  • Loc: South-Africa
  • Status: Offline

Post April 9th, 2008, 10:08 pm

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 ...
Let's leave all our *plum* where it is and go live in the jungle ...

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 36 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
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.