Comments (6)
For means of documentation, the current fix uses techniques from:
- http://www.sitepoint.com/article/activex-activation-issue-ie
-
http://www.thefutureoftheweb.com/blog/work-around-click-to-activate-and-use-this
-control
- http://www.howtocreate.co.uk/operaStuff/userjs/noclicktoactivate.js
However as noted above: These solutions have major drawbacks.
I did some additional research and tried a method like:
window.onload = function() {
var obj = document.getElementById("myId");
if (typeof document.fireEvent != "undefined" && typeof document.createEventObject
!= "undefined") {
obj.focus();
var e = document.createEventObject();
e.ctrlKey = true;
e.keyCode = 13; // return (32 for spacebar)
document.fireEvent("onkeydown", e);
}
};
Despite that the keydown event fires correctly, it isn't seen as a user event
and the
'click-to-activate' mechanism remains.
This means that:
I have taken the fix out of the code for the next beta, because the cure seems
to be
just as bad as the disease. So unless we find a better method later on (and I
doubt
that) does the static publishing method not offer a solution for the
'click-to-activate' active content problem.
For those who want to avoid this mechanism, should use the dynamic publishing
method.
Furthermore you can discuss how harmful this mechanism really is for the user
experience. It is also unclear if Microsoft will keep the mechanism inside IE
now
they have settled the dispute with Eolas:
- http://blog.seattlepi.nwsource.com/microsoft/archives/120899.asp
- http://www.techmeme.com/070830/p62#a070830p62
Original comment by bobbyvandersluis
on 9 Oct 2007 at 10:33
- Changed state: Verified
from swfobject.
[deleted comment]
from swfobject.
Don't know if it helps, but here's script I wrote for my old pages.
It triggers onDom and works on IE6+ and Opera9+(9.5beta is another problem).
Also it doesn't have IE flashvars issue like some other scripts, and it's few
loops
smaller.
Original comment by [email protected]
on 8 Nov 2007 at 10:35
Attachments:
from swfobject.
you write "Also a document.onreadystatechange strategy doesn't seem to work..."
do you mean that the dean edwards et al "script defer" domloaded method you were
using does not trigger consistently? or that rewriting the <object>'s html at
that
point is not reliable?
thanks!
Original comment by [email protected]
on 9 Nov 2007 at 9:38
from swfobject.
Seems like this problem is going away on its own:
-
http://blogs.msdn.com/ie/archive/2007/11/08/ie-automatic-component-activation-ch
anges-to-ie-
activex-update.aspx
Original comment by [email protected]
on 10 Nov 2007 at 2:00
from swfobject.
@bunnyhero: I meant to write object.onreadystatechange, not
document.onreadystatechange. Sorry for the confusion.
Original comment by bobbyvandersluis
on 12 Nov 2007 at 12:25
from swfobject.
Related Issues (20)
- SWFObject 2.2 not working in IE10 windows7 32bit
- rtmp live streaming not playing when paused
- Broken in IE 11 HOT 3
- Embedding google drive videos with swf object
- problem with IE 11. HOT 3
- IE11 issues with 2.2 and 2.3a even with issues671 modify HOT 2
- Preloader only shows up in Firefox, Chrome and Safari….not in IE
- swfobject.embedSWF function is coding & to &amp;
- IE11 plugin detection fails HOT 2
- who is MIT-Licensor of SWFObject ? HOT 3
- script acccess not working in ie11 HOT 1
- Flash Display Font Issue
- fmyblog
- i can use for PHPBB forum ?
- On Mac Safari, when older version of flash is disallowed and user does not upgrade, swfobject detects flash as enabled HOT 1
- Patch for /trunk/swfobject/src/swfobject.js
- swfobject.embedSWF() fails when using IE compatibility mode HOT 1
- callDomLoadFunctions() hangs when called after dom ready
- Version of Flash Player plugin isn't detected in Google Chrome 39.0.2171.99 (Official Build)
- Recommended Updates for IE11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swfobject.