Autor |
Nachricht |
Raumwurm
Threadersteller
Dabei seit: 21.12.2004
Ort: -
Alter: -
Geschlecht:
|
Verfasst Do 20.04.2006 23:09
Titel
|
|
|
Noch was eleganteres gefunden (aber noch nicht getestet):
Code: | Microsoft have just started to roll out an update that changes the way IE handles ActiveX controls:
http://msdn.microsoft.com/ieupdate/
MS offer a few work arounds, but all of them involve altering the way the object tag is written to the page, but here is a much easier solution that I came up with:
Create a new javascript file called, say. ieupdate.js containing the 4 lines of code at the end of this post.
Then, at the bottom of any page containing Flash (or Shockwave, Quicktime etc) add a reference to this file:
<script type="text/javascript" src="ieupdate.js"></script>
And that is it!
It works simply by replacing the contents of the object tag with itself. This external rewritting of the tag is enough for IE accept that your code doesn't require user activation. The outerHTML feature only works in IE, but as IE is the only affected browser that is OK.
You could test for IE using your favourite method (document.all, etc), and instead of adding it to the bottom of the page you could add the code to a window.onload function, depending whatever is best for your site.
If users have JavaScript turned off then your site will work as before.
Hope some people find this useful.
Useful links:
Adobe: Active Content Developer Center
MS: Activating ActiveX Controls
Mark Bennett
==========================
Attach Code
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
} |
|
|
|
|
|
Glas
Dabei seit: 24.05.2003
Ort: Bremen
Alter: 41
Geschlecht:
|
Verfasst Fr 21.04.2006 08:32
Titel
|
|
|
Hm, grad getestet - danach bekomm ich im IE rein gar nichts mehr angezeigt
|
|
|
|
|
Anzeige
|
|
|
capslockdevil
Dabei seit: 20.04.2004
Ort: Bad Homburg
Alter: 43
Geschlecht:
|
Verfasst Fr 21.04.2006 09:12
Titel
|
|
|
Mark Bennett sucks! Funktioniert so nicht
|
|
|
|
|
Nimroy
Community Manager
Dabei seit: 26.05.2004
Ort: zwischen Köln und D'dorf
Alter: 46
Geschlecht:
|
Verfasst Fr 21.04.2006 09:26
Titel
|
|
|
Kann mal einer der 's versteht den Titel editieren, so dass der ein wenig die Auswirkungen des Patches beschreibt? Dann kann man später auch noch was mit anfangen.
Merci!
|
|
|
|
|
ExMD
Dabei seit: 27.01.2005
Ort: Saarland
Alter: 45
Geschlecht:
|
Verfasst Fr 21.04.2006 09:32
Titel
|
|
|
wo zum teufel liegt wieder der sinn in einer änderung im programm, die man dann wieder mit 8 zeilen script-code umgehen kann?
|
|
|
|
|
Raumwurm
Threadersteller
Dabei seit: 21.12.2004
Ort: -
Alter: -
Geschlecht:
|
Verfasst Fr 21.04.2006 09:36
Titel
|
|
|
capslockdevil hat geschrieben: | Mark Bennett sucks! Funktioniert so nicht |
Schade, wär auch zu schön gewesen. Frage mich echt
ob der das überhaupt getestet hatte?
@Nimroy:
ja bitte, mir fällt auch kein gscheider Titel ein.
Zuletzt bearbeitet von Raumwurm am Fr 21.04.2006 10:31, insgesamt 1-mal bearbeitet
|
|
|
|
|
Nimroy
Community Manager
Dabei seit: 26.05.2004
Ort: zwischen Köln und D'dorf
Alter: 46
Geschlecht:
|
Verfasst Fr 21.04.2006 09:56
Titel
|
|
|
Würde "ActiveX-Patch für IE behindert Flash-Filme & Co." es treffen?
|
|
|
|
|
ExMD
Dabei seit: 27.01.2005
Ort: Saarland
Alter: 45
Geschlecht:
|
Verfasst Fr 21.04.2006 10:05
Titel
|
|
|
Nimroy hat geschrieben: | Würde "ActiveX-Patch für IE behindert Flash-Filme & Co." es treffen? |
japp
|
|
|
|
|
|
|
|
Ähnliche Themen |
20 x SWF Filme in Flash
tranzparente flash filme?
Flash-Filme, online
Activating ActiveX Controls
[Flash] eingebettete Filme ausblenden
FLASH Steuerung externer Filme bzw. und Frame
|
|