10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 10-3 Code for changeMyStatusToAway functionfunction changeMyStatusToAway(){STLinksSetMyStatus(64,document.f1.desc.value);}Once these two changes have been completed, the button should be functionaland ready for testing. Figure 10-10 illustrates our portlet with the new stlinksfunctionality, namely the I’m Away button. Notice that once the user set theirstatus to Away, the connect client also displays the user in away mode.Figure 10-10 Changing status through the I’m Away buttonThe ability to use STLinks API calls is provided automatically, since we alreadyadded the taglib include (people.tld file) and cs.jar file include to our page. Byincluding this ability, it also provides functions for connecting us to the Sametimeserver using the portal authentication information. It also references the includefor the stlinks.js file that contains all the STLinks API calls.In this example, we have used the STLinksSetMyStatus API call to provide thefunctionality for the button. Please be aware, however, that this is just one of themany STLinks AI calls that is available to a developer. For a complete listing ofthe STLinks API function calls available, please reference the Developers Guideprovided with the Sametime Links Toolkits.Chapter 10. Sametime-enabling portlets 291

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!