I have implemented a Lync Contact Card Presence as follows:
var email = "userEmail@example.com";
var uuid = guid() + ",type=sip";
IMNRC(email, document.getElementById(uuid));
function guid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }
In IE 10 and above it works sometimes, sometimes it throws "Unable to get property 'srcElement' of undefined or null reference".
In FireFox, it throws "window.event is undefined in FF"
I tried to use the following code but it didn't work:
document.addEventListener('onclick',ex.exampl,true);
var ex = { exampl: function(e){ var evt = e || window.event } }