
Chapter 10. Sametime-enabling portlets 291
Example 10-3 Code for changeMyStatusToAway function
<script>
function changeMyStatusToAway()
{
STLinksSetMyStatus(64,document.f1.desc.value);
}
</script>
Once these two changes have been completed, the button should be functional
and ready for testing. Figure 10-10 illustrates our portlet with the new stlinks
functionality, namely the I’m Away button. Notice that once the user set their
status to Away, the connect client also displays the user in away mode.
Figure 10-10 Changing status through the I’m Away button
The ability to use STLinks API calls is provided automatically, since we already
added the taglib ...