Forum Moderators: open

Message Too Old, No Replies

IE 6 ActiveX plugin and focus problem

javascript, activeX, IE 6 focus bug

         

fabricator

3:37 pm on May 29, 2006 (gmt 0)

10+ Year Member



I'm trying to find a solution to this problem. Its a bug created by the IE 6 ActiveX 'patch' which creates the 'click here to enable active content' system.

The plugin is loaded via an embed tag, using javascript. The plugin content then loads HTML directly using a load (url,'target=top') type setup.

But the page loaded is disabled, even the brower buttons don't work. However its not greyed out so its still in focus. Its all quite wierd and I wonder if anyone else has this problem with Flash, shockwave etc?

Here is what I have tried.
1) use external .js to write in embed tag. This fixed the 'click to activate....' but not the other problems.
2) put javascript in to unload the ActiveX content (by setting the src to "")
3) window.focus=true and window.blur=true, still not working properly.

so basically this is the problem, in order of loading.
1) HTML (loads ActiveX content)
2) ActiveX content (replaces HTML page with new HTML page)
3) Newly loaded HTML is disabled. both links and the Browser instance itself do not respond to clicks.

I got a new version of the Plugin involved, which did fix it. But most visitors to my site won't have the new version.

fabricator

2:16 pm on Jun 7, 2006 (gmt 0)

10+ Year Member



Well after a lot of hacking around I found using iframe instead of embed solves the problem. God only know why this fixed it but other solutions like re-installing the plugin and install windows XP sp2 didn't fix it.

so basically I now have:
if (ie) {
embed = "iframe tags";
}
else {
embed = "embed tags";
}
document.write(embed);