NameCtrl Control

A NameCtrl control is an ActiveX control that allows a Web page to display presence information for people, and it allows the user to take various actions with respect to those people through an on-object user interface (UI) in Windows SharePoint Services.

Remarks

When a user passes the pointer over the name of a user on a SharePoint site, a function named EnsureIMNControl is called, which is defined in the file OWS.JS. This function creates the NameCtrl control on the page as follows:

new ActiveXObject("Name.NameCtrl.1")

OWS.JS is located in the Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033 directory on each front-end Web server in a Windows SharePoint Services deployment.

A developer can create a custom control for displaying presence information if it has the same ProgID (Name.NameCtrl.1), uses the same method or property names, and provides the same functionality that is described in this reference. Functions can be created that handle the event in which the online status of a specified person changes.

When the 2007 Microsoft Office system is installed on the client computer, the NameCtrl control is defined in the NAME.DLL file, a dynamic-link library that is installed on the client during 2007 Office system setup in the Local_Drive:\Program Files\Microsoft Office\OFFICE12 directory.

Tags :


Community Content

Andrew Pearson
I dont understand

I'm reading the section on the ShowOOUI method and the part about iInputType doesnt make sense.  Two questions:

1 - If it is just a simple question of if the object was moused over or tabbed selected, couldnt a boolean be used?

2 - What long value do I pass if it was a mouseover and what value do I pass if it was tabbed over?  For now I am going to try using the "onMouseOver" event and pass 1 for iInputType.

Tags :

Pranav Kandula
Question on ShowOOUI method
The ShowOOUI method seem to be dependent on onmouseover event. What if I want to show the presence control regardless of any events ? Why is this designed only for hovers ? I just want to show the presence control/status by default. I am looking for the behavior that is currently available in any Sharepoint list where Modified By column is auto-prefixed by presence control. How do I achieve this ?

Tom C Bowersox
Question on ShowOOUI menu
Is there any way to grey out or hide certain options from users?
I'm trying to use the ShowOOUI menu in an ASP.NET 1.1 application. At my company, we use a non-Microsoft based e-mail client. Because of this, I need to hide the "Add to Exchange" and "Schedule a meeting" options from the pop up menu. Any assistance would be greatly appreciated.

Page view tracker