SDK |
ListenUp Example |
JavaSonics ListenUp is no longer for sale.How to Auto Activate the ListenUp AppletYou may have noticed that with Internet Explorer you have to click once on any Java Applet before it will respond. This is because a company called EOLAS sued Microsoft over the patents for browser plugins. As a workaround, Microsoft was forced to add this "click once" behavior. This is very annoying for users. Luckily there is a workaround that is only annoying to developers but not to users. The solution is to pass your Applet code to JavaScript, which then writes it back to your web page. Follow these steps to avoid the "Click Once to Activate" problem: 1) Copy the file called "external_writer.js" from this folder to your website. It contains: function ExternalDocumentWrite( appletCode ) { document.write( appletCode ); } 2) Load that script as follows: <script type="text/javascript" src="external_writer.js"></script> 3) Add some script to your page and put your Applet code in a string. var appletCode = '<applet CODE="com.softsynth.javasonics.recplay.RecorderUploadApplet"' + ' ARCHIVE="ListenUpSpeex.jar"' + etcetera ... 4) Pass that string to JavaScript. ExternalDocumentWrite( appletCode ); Please "View Source" for this page to see how it is done. Note that in the Applet below you can click on the red record button and the Applet will respond immediately.
See more examples. |