Welcome to WebmasterWorld Guest from 184.108.40.206 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
I want to add a focus command to the end so that the player is in focus and the keyboard shortcuts native to the player can be utilized. So I tried this:
which works in IE and FF but not in Safari, Opera, and Chrome. :(
I tried setting a time delay [in an onclick and inline] to the focus function thinking it wasn't firing last somehow but that didn't seem to change anything. I also tried document.getElementById('') to handle it and that failed as well. Do these 3 browsers handle focus differently than others? or is the way a series of JS commands are executed?
whoisgregg msg:3982885 7:05 pm on Sep 2, 2009 (gmt 0)
Perhaps the .focus() should be on something higher up in the DOM? Like top.content.fplayer.focus()?
I know that Safari has security restrictions about setting .focus on certain elements because of security concerns.
Revata msg:3983063 11:17 pm on Sep 2, 2009 (gmt 0)
Thanks again for your response gregg.
Yeah, I had tried that. tried adding ".document" at the page level too and nothing really seemed to work.
might be the security thing. Seems a bit odd tho that all 3 browsers are faulting.
whoisgregg msg:3983388 2:52 pm on Sep 3, 2009 (gmt 0)
Could you perhaps have the object that's receiving the LOAD event put .focus() on itself when it receives a LOAD event?
I suspect that would get around any security issues, as well as removing any possible ambiguity about pointing to the right element.