ActiveX Issue

V

Vincent

We currently use Javascript to launch the outlook from the web
application interface (web browser). It can launch successfully, but
when the user close the outlook, and then relaunch again, there's
always error and the outlook is not open. I check through the task
manager and found that outlook process is still there. Any idea on the
problem? Below is the javascript code:

outlookApp = new ActiveXObject("Outlook.Application");
if (outlookApp.Explorers.Count > 0) {
outlookApp.Explorers.Item(1).display();
outlookApp.Explorers.Item(1).windowstate = 0;
} else {
nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailFolder.display();
outlookApp.Explorers.Item(1).windowstate = 0;
nameSpace = null;
mailFolder = null;
}

outlookApp = null;
window.opener='X';
window.open('','_parent','');
window.close();
 

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

Top