Miva, Miva Script, Miva Empresa, Miva Mia amd Miva Merchant are registered trademarks of the Miva Corporation
 
Ivo Truxa - truXoft control systems: advanced programming and custom IT solutions home / about / webdesign / Miva / automation / contact

http://mivo.truxoft.com
MIVO!
miva beyond limits

 

MIVA®  RESOURCES: Opening Miva documents directly

by Ivo Truxa, 03/27/2000 (updated 03/29/2000)

A bit annoying on Miva® MiaTM is that it is unable to parse Miva documents directly. It only can serve the documents. It means that you cannot simply click on a Miva document in explorer to open it in a browser window, you mostly need to type the URL.

There is a small trick how to achieve it anyway. You just need to set MSIE or Navigator as applications for opening your Miva scripts through a tiny JavaScript:

This is a setting for MSIE® but for Netscape® it would be very similar (addenum: Netscape settings). I did it on a NT® machine, but there is no big difference on Win9x®. Use your own path for MSIE and Miva script root.

Go to Explorer/View/Options/FileTypes, choose the Miva document (extensions MV, HTS, HTML or whatever you want to use for Miva), go to Edit/Open/Edit and set the following parameters:

  • Check ON the 'Use DDE' checkbox
  • Application used to perform action:
    "C:\PROGRA~1\Plus!\MICROS~1\iexplore.exe" -nohome
  • DDE message: "localhost/mia.html?%1",,-1,,,,,
  • Application: IExplore
  • DDE Application not running: - keep empty -
  • Topic: WWW_OpenURL

And then just create a tiny HTML document in your Miva root directory with the following code (I call it mia.html):


<HTML>
<BODY onload='location=location.search.replace("?C:\MivaScriptRoot:","");'>
</BODY></HTML>

You can do it without DDE, too:

Disable DDE and set just the 'Application used to perform action':
"C:\PROGRA~1\Plus!\MICROS~1\iexplore.exe" localhost/mia.html?%1

In this way each time you open a Miva document it will start a new browser window.

That's all. You can start clicking your Miva documents.

Enjoy,
Ivo



Addenums:

Using more browsers

You can define more than just a single open command for each file type. They will appear in the file context menu when you right-click on the document. You can set open commands for MSIE, for NS, HomeSite, NotePad, FTP or whatever else. You can create commands for opening the file in another project.


Settings for Navigator

(tested with Netscape Navigator 4.7)

  • Check ON the 'Use DDE' checkbox
  • Application used to perform action:
    C:\PROGRA~1\netscape\Program\netscape.exe "http://localhost/mia.html?%1"
  • DDE message: "http://localhost/mia.html?%1"
  • Application: NSShell
  • DDE Application not running: - keep empty -
  • Topic: WWW_OpenURL

Use your own path for navigator.


top

   

Miva and some other terms used on this page are registerd trademarks of the Miva Corporation
copyright  truXoft  © 1997-2010