Presence Indicator:

SharePoint 2010 displays presence indicator of the user when he is signed in to Lync.

In XSLT we can just use <xsl:value-of select=”@FieldName” disable-output-escaping=”yes”/> inorder to render the value of people picker entry on the page; provided, the column type is set to ‘Name with presence enabled’.

Image

ISSUE:

In IE9, this presence indicator does not render due to issues with the internal JS of SharePoint.

FIX:

We need to override a function to get this fixed. On your master page use the following code snippet to resolve the above rendering issue.

<script type=”text/javascript” defer=”defer”>

// replace IE Function:

var ProcessImnMarkers = function ()

{ ULSxSy:;
var i ;
for (i = 0; i < imnMarkerBatchSize; ++i)
{
if(imnCount === imnElemsCount)
{ return; }

IMNRC(imnElems[imnCount].getAttribute(‘sip’),imnElems[imnCount]);
imnCount++;
}

setTimeout(“ProcessImnMarkers()”, imnMarkerBatchDelay);
};

</script>

Voila!

The presence indicator should now render in IE9 🙂