sharepoint - presence control in asp.net web applications -


i've managed implement name.namectrl.1 active x used in sharepoint in own custom built apps presence. working fine , i'm updating presence status correctly based on users status on office comunication server. i'm not getting other details on user propulated in presence control in sharepoint. sip address in email field (rather real default email address in ad) , link schedule meeting.

can tell me how control populate details ad (dept, email, phone etc) in sharepoint?? don't organization tab in control sharepoint.

any ideas?

thanks,

keeney

namectrl gets majority of data running instance of communicator (or lync, if you're using that) on client machine. no data directly pulled sharepoint. have namectrl work on web pages, need make sure that:

  • communicator (or lync) running on client, , signed in
  • the web page calling namectrl in intranet or trusted sites zone in browser

the recommended pattern call presenceenabled on namectrl object before calling other methods - if returns false, 1 (or both) of above prereqs false. code below works me

<script>  var sipuri = "your.contact@your.domain.com";  var namectrl = new activexobject('name.namectrl.1'); if (namectrl.presenceenabled) {   namectrl.onstatuschange = onstatuschange;   namectrl.getstatus(sipuri, "1"); }   function onstatuschange(name, status, id) {   // function fired when contacts presence status changes.   // in real world solution, want update image reflect users presence   alert(name + ", " + status + ", " + id); }  function showooui() {   namectrl.showooui(sipuri, 0, 15, 15); }  function hideooui() {   namectrl.hideooui(); }  </script>  <span onmouseover="showooui()" onmouseout="hideooui()" style="border-style:solid">your contact</span> 

in case haven't seen it, there good(ish) namectrl reference here


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -