Open Outlook Forms through the web

C

Chuck

I setup our intranet to open outlook forms thorugh the web. I found
some code at http://www.slipstick.com/dev/code/formonweb.htm#info

It works great except for one issue, I can't seem to figure out. I
cannot get any form to mimimize that is opened though our intranet.
If I open the same form though outllook then the minimize works fine.
The forms are published in the Orgnizational Folder.

Any help you could give would be greatly appreicated. Below is the
code



<html>

<head>

<script language="JavaScript" type="text/JavaScript">

<!-- Enable Stealth Mode

// Variable Definitions

var nameSpace = null;

var mailFolder = null;

var mailItem = null;

var tempDoc = null;

var outlookApp = null;

function OpenOutlookDoc(whatform)

{

try

{

outlookApp = new ActiveXObject("Outlook.Application");

nameSpace = outlookApp.getNameSpace("MAPI");

mailFolder = nameSpace.getDefaultFolder(6);

mailItem = mailFolder.Items.add(whatform);

mailItem.Display(0)

}

catch(e)

{

// act on any error that you get

}

}

// Disable Stealth Mode -->

</script>

</head>

<body>

<form>

To use form buttons:<br>

<input type=button value="Form A" NAME="OutlookOpen1"
OnClick="OpenOutlookDoc('IPM.Note.FormA')"><br><br>

<input type=button value="Form B" NAME="OutlookOpen2"
OnClick="OpenOutlookDoc('IPM.Note.FormB')"><br><br>

To use text links:<br>

<a href=javascript:void(0)
onClick="OpenOutlookDoc('IPM.Note.FormA')">Form A</a><br><br>

<a href=javascript:void(0)
onClick="OpenOutlookDoc('IPM.Note.FormB')">Form B</a>

<!-- change the information between the single quotes to match your
custom forms class Name like IPM.Note.CustomForm - you can have
different links to different forms, provided you specify a different
class Name for each link //-->

</form>

</body>

</html>
 
C

Chuck

I setup our intranet to open outlook forms thorugh the web. I found
some code at http://www.slipstick.com/dev/code/formonweb.htm#info

It works great except for one issue, I can't seem to figure out. I
cannot get any form to mimimize that is opened though our intranet.
If I open the same form though outllook then the minimize works fine.
The forms are published in the Orgnizational Folder.

Any help you could give would be greatly appreicated. Below is the
code



<html>

<head>

<script language="JavaScript" type="text/JavaScript">

<!-- Enable Stealth Mode

// Variable Definitions

var nameSpace = null;

var mailFolder = null;

var mailItem = null;

var tempDoc = null;

var outlookApp = null;

function OpenOutlookDoc(whatform)

{

try

{

outlookApp = new ActiveXObject("Outlook.Application");

nameSpace = outlookApp.getNameSpace("MAPI");

mailFolder = nameSpace.getDefaultFolder(6);

mailItem = mailFolder.Items.add(whatform);

mailItem.Display(0)

}

catch(e)

{

// act on any error that you get

}

}

// Disable Stealth Mode -->

</script>

</head>

<body>

<form>

To use form buttons:<br>

<input type=button value="Form A" NAME="OutlookOpen1"
OnClick="OpenOutlookDoc('IPM.Note.FormA')"><br><br>

<input type=button value="Form B" NAME="OutlookOpen2"
OnClick="OpenOutlookDoc('IPM.Note.FormB')"><br><br>

To use text links:<br>

<a href=javascript:void(0)
onClick="OpenOutlookDoc('IPM.Note.FormA')">Form A</a><br><br>

<a href=javascript:void(0)
onClick="OpenOutlookDoc('IPM.Note.FormB')">Form B</a>

<!-- change the information between the single quotes to match your
custom forms class Name like IPM.Note.CustomForm - you can have
different links to different forms, provided you specify a different
class Name for each link //-->

</form>

</body>

</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top