I am working on a Lync presence Indicator in Sharepoint.
I have read this Article for adding presence indicator and it works fine if I add HTML static. But when I add HTML Dynamically it doesn't work anymore. I would wants to know why this not work when dynamically added?
I have also tried to add HTML through console. But this also does not work.
Here is my code which I am adding dynamically.
html += "<span class='ms-imnSpan'><a href='#' onclick='IMNImageOnClick(event);return false;' class='ms-imnlink ms-spimn-presenceLink'><span class='ms-spimn-presenceWrapper ms-imnImg ms-spimn-imgSize-10x10'><img name='imnmark' title='' ShowOfflinePawn='1' class='ms-spimn-img ms-spimn-presence-disconnected-10x10x32' src='/_layouts/15/images/spimn.png?rev=23' alt='User Presence' firstname.lastname@example.org' id='imn_1,type=sip' /></span></a></span>";
I have gone through this Question but it's not a solution.
Does the presence indicator work if I add this HTML dynamically?