RE: Questions while evaluating Wyona

"Laurens van den Oever" <[email protected]> Fri, 14 Feb 2003 09:56:20 +0100
Newsgroups gmane.comp.cms.wyona.user
Message-ID <[email protected]>
Hi list,

Time to come to the rescue, although a bit late. :)

On Thursday 13 February 2003 08:59, Christian Stocker wrote:

> Mmmmh, I don't know, if you can check if MXSML4 is installed. IIRC
xopus
> does something like that on there demo, but i'm not sure.

Our code to detect and install MSXML4:

// Check for MSXML4 if the current browser is IE
var xopus_ok = true;
if (xopus_browser.ie)
{
  try
  {
    new ActiveXObject("MSXML2.DOMDocument.4.0");
  }
  catch(e)
  {
    if (confirm("Xopus Error: Missing MSXML4\n" +
                "\n" +
                "Do you want Xopus to install MSXML4 now?"))
    {
      document.write(
        "<object id='MSXML4' " +
        "classid='clsid:88d969c0-f192-11d4-a65f-0040963251e5' " +
        "codebase='msxml4.cab#version=4,10,9404,0' " +
        "type=application/x-oleobject'></object>");
    }
    else
      xopus_ok = false;
  }
}

Good luck!

Laurens
Q42