Click to See Complete Forum and Search --> : Outlook View Control


prl
06-04-2009, 06:34 AM
Hello,

Sorry if this is in the wrong section.

I have an HTML page that has an Outlook View Control. Something simple like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>View Control</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<meta content="MSHTML 5.50.4522.1800" name="GENERATOR" />
</head>
<body style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;">
<div>
<script src="email-inbox.js" type="text/javascript"></script>
</div>
</body>
</html>

the javascript file has only this:

// inserts the <object> and <embed> tags to circumvent the new restriction in IE (since April 11 2006)
document.write('<object id="ViewCtlFolder" classid="CLSID:0006F063-0000-0000-C000-000000000046" width="100%" height="180px"><param name="Folder" value="Inbox" /></object>');

The problem is that when Microsoft Outlook is not installed this will fire a Javascript error. I want to avoid that error and display a message like "Microsoft Outlook not installed".

Is there any way I can do this?

Thanks in advance