I think I may have mentioned how stupid the Eolas Patent is, and what a pain it's going to be for developers who use embeded objects in a web page.
Luckily so far the scourge has only affected IE users so far. But hey, as that's 80-90% of the market depending on who you listen to that's enough to mean that there's a lot of web pages out there that need fixing.
Luckily the fix isn't a huge task, but it's a pain to have to do it... especially if you have a page with a lot of objects on.
Take this simple example:
<embed name="clicker" autostart="false" height="0" width="0" loop="false" src="/content/click.mp3" mce_src="/content/click.mp3" enablejavascript="true" CONTROLLER="true" /></embed>
apparently that is an offending ActiveX (apparently it falls foul of the "controls which require user interaction" clause in this misbegotten settlement)
So... what's the solution...
- First of all, you have to wrap your code in a document.write like so:
document.write('<embed name="clicker" autostart="false" height="0" width="0" loop="false" src="/content/click.mp3" mce_src="/content/click.mp3" enablejavascript="true" CONTROLLER="true" /></embed>');
- Then save it in an external file (clicker.js)
- Then reference it in the original document
<script type="text/javascript" src="clicker.js" mce_src="clicker.js"></script>
Simple, but essentially pointless and time consuming.