www.webdeveloper.com
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    566

    document.getElementById('flv').onclick=function(){alert('test')}

    document.write(...) the flowplayer object with id=flv (IE7 patent workaround)
    document.getElementById('flv').onclick=function(){alert('test')}

    Works in FF but in IE7 javascript onclick event's get blocked by flash player ?

  2. #2
    Join Date
    May 2006
    Location
    Odenton, MD
    Posts
    1,449
    i guess any DOM compliant browser will work as well. that may be due to the way event propagate through the elements reaching the element that triggered the event. the standard event model specify that event propagate from top element (on a web document that is the HTML element) following the path until the element that triggered the event, and then back to the top. sadly, msie doesn't implement that specification, so, it only bubble (from element to top).

    so, i guess that when you click on the flash content, the focus move to that flash object, not to the flash element (ebmed or object element). as far as i know, event triggered on flash isn't reported to the web document. in resume, i'm almost sure there nothing you can do about it.
    my mom is javascript, dad is javascripter, granpa is javascriptor, and my little sister is javasRidiculous.
    my nature language is javascript, then come spanish and english -- me

  3. #3
    Join Date
    Oct 2004
    Posts
    566
    well i got lucky onfocus seem to be working in IE7

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles