A friend recently asked me that their company started Ocs2007 In the hope that it can be integrated with the application system. In Winforms Integration on, has been implemented almost, but Web System integration does not know how to proceed. Their integration requirements are: the user enters every system and wants to see the user's online status and can communicate with him conveniently.
Here we will explain how to integrate the OCS online status function in the web system. In fact, this feature was available in the LCS era. The integration method is simple. By using the office dynamic Connection Library name. dll, you can easily integrate with webpages to achieve the following effect:
The following is an example of how to activate the ActiveX Object namectrl through javascript. When you click it, you can call out the integrated communication menu to initiate instant messages, including sending
Email, add contacts, and schedule appointments. < Html >
< Head >
</ Head >
< Body >
< Script Language = "JavaScript" >
Initializeobject ();
Function Initializeobject ()
{Nameobj = New Activexobject ( " Name. namectrl " );
}
Function Showooui (name)
{ VaR OBJ = Window. event. srcelement; nameobj. showooui (name, 0 , 0 , 0 );
}
Function Hideooui ()
{Nameobj. hideooui ();
}
</ Script >
< Span Onmouseover = "Showooui ('demo@microsoft.com ')" Onmouseout = "Hideooui ()" > Kane Xu </ Span >
</ Body >
</ Html >
Note: ensure that the client software of office2003 or office2007 is installed.