The web system integrates the OCS online status Function

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.