| |||||||||||||||||||||||||||||
![]()
![]()
|
| ||||||||||||||||||||||||||||
|
You can distribute your files with the format .mio on your website, and establish a detection procedure. The host server with the .mio files should be able to recognize this format. To do so, request your host to add the following MIME format: .mio = application/mio This is a classic procedure, and a e-mail request to your host is generally enough. |
MioEngine Automatic detection
|
The following code shows a link indicating a Mio, starting a detection procedure. Instead of signaling the Mio file directly, the link calls the JavaScript function openMio. The syntax of the function openMio is as follows: openMio(MioURL, Language); MioURL is the HTTP address of the application with the .mio format. Language can be set to 'fr' (French) or 'en' (English) |
Your own automatic detection procedure
|
You can also establish your own automatic detection procedure. Detection allows you to know if a MioEngine is installed in the computer and if it works with Microsoft Internet Explorer, Netscape Navigator and Opera. The detection does not permit you to know which MioEngine version is installed. Actually, the same Mio file will verify if the installed reader version is sufficient, and will propose an automatic update if it is not. The first part of the code calls the function detectMioReader(), which sends a true value if the reader is installed. If the reader is installed, the Mio application will open. On the contrary, you can call your own page to invite the user to download the latest reader version from the following location: http://www.Mioplanet.com/products/mioengine/mioengine.exe The following code detects the presence of the Mio reader in the following way: For Internet Explorer, it verifies the presence of an additional key in the registry database through the Mio engine. For Nescape and Opera, it verifies the presence of the plugin npmio.dll, located in the pluginW folder of the concerned browser.The function detectBrowser is responsible for detecting the browser, in order to permit the utilization of the corresponding detection procedure: |