There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Tech Tips & Tricks
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
Flash Activation Fix for Internet Explorer


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
deepdiver01's Avatar
Senior Member with 729 posts.
 
Join Date: Dec 2004
Location: Cairns, Australia
Experience: Intermediate
02-Feb-2007, 06:08 PM #1
Flash Activation Fix for Internet Explorer
The following code is used to override the necessity to click on a flash object in Internet Explorer to activate it.

This code is compliments of another help site that specialises in javascript.

First, create a file and name it fixFlash.js.
This file can be placed in the public area of your site or, preferrably in a separate folder for your javascript files.

Paste the following code into the fixFlash.js file:

Code:
window.onload = function() {
  fixFlash(); }
    function fixFlash() {
     objects = document.getElementsByTagName("object");
     for (var i = 0; i < objects.length; i++)
   {
  objects[i].outerHTML = objects[i].outerHTML;
}
}
Now place the following code into the HEAD section of your HTML or PHP document.
You may need to change the path of the file, depending on the name of the folder for your javascripts.

Code:
<!-- fixes the Internet Explorer ActiveX update 912812 which prevents third party plugins
 from running automatically -->
<!--[if IE]>
<script type="text/javascript" src="js/fixFlash.js"></script>
<![endif]-->
I am sure that a lot of you will already have this fix, but for those that do not, I hope this helps.

I have also posted this tip in the Web Development section of the forums. If this is considered double posting, please feel free to slap my hand and remove the offending post(s).

Cheers.
Deep.
__________________
Six mumfs ago I coodnt spel injineer. Now I are wun.

Domain Names, Web Hosting
Free Online Games | Free Flash Games
Australian Domain Names
Motor Finance Wizard Information Base
gurutech's Avatar
Computer Specs
Distinguished Member with 2,261 posts.
 
Join Date: Apr 2004
Location: Central NJ
Experience: Seasoned Professional
05-Feb-2007, 01:49 PM #2
Is this just a one-time deal, or does this have to be run every time IE is opened, or every time a page is loaded?
ferrija1's Avatar
Computer Specs
Distinguished Member with 9,695 posts.
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Experience: Mac Addict
05-Feb-2007, 08:17 PM #3
Quote:
Originally Posted by gurutech
Is this just a one-time deal, or does this have to be run every time IE is opened, or every time a page is loaded?
It is put on the web page, so it is used every time you go to a site with the fix.
deepdiver01's Avatar
Senior Member with 729 posts.
 
Join Date: Dec 2004
Location: Cairns, Australia
Experience: Intermediate
06-Feb-2007, 02:48 AM #4
Sorry gurutech for not making it clearer.

As ferrijal mentioned this bit of code is used on your website if you have a flash object on that site.

The code is added to all pages that have flash on it, and it will over-ride the rubbish that appears on your visitors browser if he/she is using IE. It does give a quick reload of the flash object as the page is opening, but is nothing compared to your visitor having to click on the flash area just to activate it.
__________________
Six mumfs ago I coodnt spel injineer. Now I are wun.

Domain Names, Web Hosting
Free Online Games | Free Flash Games
Australian Domain Names
Motor Finance Wizard Information Base
gurutech's Avatar
Computer Specs
Distinguished Member with 2,261 posts.
 
Join Date: Apr 2004
Location: Central NJ
Experience: Seasoned Professional
06-Feb-2007, 03:32 PM #5
Is there anything that a user can do on their end to disable it?
ferrija1's Avatar
Computer Specs
Distinguished Member with 9,695 posts.
 
Join Date: Apr 2006
Location: Pittsburgh, PA
Experience: Mac Addict
06-Feb-2007, 04:40 PM #6
Quote:
Originally Posted by gurutech
Is there anything that a user can do on their end to disable it?
Disable the fix? No.

Fix the IE Flash problem without requiring the web page to have that code on it? Probably no.
Jeroen Haan's Avatar
Junior Member with 4 posts.
 
Join Date: May 2007
Experience: Advanced
03-May-2007, 12:31 PM #7
Please keep my credits intact.
I took me days to find this solution.
First I had to identify the cause of the problem, trying all kind of complex solutions which only caused more problems.
I wrote many scripts out of frustration with the existing solutions.

The original script can be found here:
http://www.haan.net/test/flash_fix1.php
and here:
http://javascript.internet.com/snipp...t-starter.html

Again, please maintain the credits.
Code:
/* -----------------------------------------------
   Explorer Object Starter - v.1.1
   (c) 2007 www.haan.net
   contact: jeroen@haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
  ------------------------------------------------ */

// fixes the Internet Explorer ActiveX update 912812 which prevents third party plugins from running automatically


window.onload = function()
{
	fixFlash();
}
function fixFlash()
{
	objects = document.getElementsByTagName("object");
	for (var i = 0; i < objects.length; i++)
	{
		objects[i].outerHTML = objects[i].outerHTML;
	}

	embed = document.getElementsByTagName("embed");
	for (var i = 0; i < embed.length; i++)
	{
		embed[i].outerHTML = embed[i].outerHTML;
	}
}
Jeroen Haan's Avatar
Junior Member with 4 posts.
 
Join Date: May 2007
Experience: Advanced
03-May-2007, 12:34 PM #8
only for IE 7
By the way,
it's better to call the script like this:
Code:
<!--[if IE 7]>
<script language="JavaScript" src="/js/fixFlash.js" type="text/JavaScript"></script>
<![endif]-->
deepdiver01's Avatar
Senior Member with 729 posts.
 
Join Date: Dec 2004
Location: Cairns, Australia
Experience: Intermediate
03-May-2007, 11:39 PM #9
Jeroen.

My apologies for not including the credits.

I got the code from the newsletter and there must not have been the credits there. I don't have a copy of the newsletter any more so I cannot double check this.

Again my apologies for not including your credits.

If they were, I would have most certainly included them.
__________________
Six mumfs ago I coodnt spel injineer. Now I are wun.

Domain Names, Web Hosting
Free Online Games | Free Flash Games
Australian Domain Names
Motor Finance Wizard Information Base
Jeroen Haan's Avatar
Junior Member with 4 posts.
 
Join Date: May 2007
Experience: Advanced
06-May-2007, 10:18 AM #10
it's okay :-)

I love simple solutions.

please check out my other scripts on
www.haan.net/test/

I will add new ones soon.

Of course I hope I will get some orders from customers as well.
Jeroen Haan's Avatar
Junior Member with 4 posts.
 
Join Date: May 2007
Experience: Advanced
28-Jun-2007, 07:52 AM #11
new Explorer Plugin Starter
A very simple, easy to understand script which also starts Applets without disturbing their Param tags:
http://www.haan.net/test/java/
deepdiver01's Avatar
Senior Member with 729 posts.
 
Join Date: Dec 2004
Location: Cairns, Australia
Experience: Intermediate
28-Jun-2007, 10:25 AM #12
Thanks Jeroen.

Have replied to your PM.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:09 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.