Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
[deleted comment]

from swfobject.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.